README.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. The new "concurrent.futures" module from Python 3.2 will make it
  2. even easier to execute tasks concurrently:
  3. http://www.python.org/dev/peps/pep-3148/
  4. It may be tempting to try to create a new build system from it,
  5. but that's only a small part of a build system:
  6. * reinventing a system for handling commands and command-line options
  7. * adding a system of (task) order and dependencies
  8. * creating an extension system for new programming languages
  9. * handling exceptions and errors
  10. * adding support for python versions < 3.2
  11. All this represents a lot of work, and there are of course lots of design
  12. mistakes to avoid. It is so easy to create a system with poor usability,
  13. poor extensibility, and poor performance.
  14. These pitfalls and many others are already solved in the Waf build system, which
  15. also enables the re-use of its components into new build tools. By using these
  16. tested and maintained components, much more time will be left to work
  17. on the interesting problems such as creating an intuitive XML/YAML/JSON schema
  18. or creating a domain-specific programming language (make-like, cmake-like, ...),
  19. or extracting commands and dependencies to create derivated files (Makefiles, Visual studio, ..)
  20. A few examples are provided to illustrate the range of possibilities:
  21. * overview: how to create a custom file using the waf framework to perform a simple build
  22. * parser: how to add a parser for a domain-specific language
  23. * noscript: infer what to build from given files, use no script file
  24. * makefile_dumper: create a makefile corresponding to the current build, extracting as many dependencies as possible
  25. * nostate: use timestamps only, and no build directory (very make-like)
  26. * extpy: a custom waf file able to read wscript files having the extension ".py"
  27. Thomas Nagy, 2010-2016