python3_support.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Python 3 Support
  2. ==================
  3. Python 3 is a major update to the Python programming language.
  4. Raptor now supports being run with Python 3.1.x or 3.2.x as well
  5. as Python 2.6.5 and up.
  6. How to use Python 3 with Raptor
  7. --------------------------------
  8. Set the variable SBS_PYTHON3 before running raptor e.g.
  9. on Linux -
  10. export SBS_PYTHON3=/usr/bin/python3
  11. or Windows -
  12. set SBS_PYTHON3=e:\apps\python321\python.exe
  13. Raptor will then use python 3 for running itself. Note
  14. that if SBS_PYTHON is also set then SBS_PYTHON3 takes
  15. precedence and Raptor will still run under Python 3.
  16. Python scripts that are run in the main build e.g mifconv.py
  17. are still executed with Python 2 (as specified by the "SBS_PYTHON" variable).
  18. Python 3 Benefits
  19. ------------------
  20. Python 3 supports a number of programming features that are of interest
  21. to Raptor e.g.
  22. * PEP 3148, a new futures library for concurrent programming
  23. * an overhauled GIL implementation that reduces
  24. contention
  25. These features make it possible to solve problems and do so quickly.