INSTALL.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. default-role:: literal
  2. ============================
  3. Installation of processing
  4. ============================
  5. Versions earlier than Python 2.4 are not supported. If you are using
  6. Python 2.4 then you should install the `ctypes` package (which comes
  7. automatically with Python 2.5).
  8. Windows binary builds for Python 2.4 and Python 2.5 are available at
  9. http://pyprocessing.berlios.de
  10. or
  11. http://pypi.python.org/pypi/processing
  12. Otherwise, if you have the correct C compiler setup then the source
  13. distribution can be installed the usual way::
  14. python setup.py install
  15. It should not be necessary to do any editing of `setup.py` if you are
  16. using Windows, Mac OS X or Linux. On other unices it may be necessary
  17. to modify the values of the `macros` dictionary or `libraries` list.
  18. The section to modify reads ::
  19. else:
  20. macros = dict(
  21. HAVE_SEM_OPEN=1,
  22. HAVE_SEM_TIMEDWAIT=1,
  23. HAVE_FD_TRANSFER=1
  24. )
  25. libraries = ['rt']
  26. More details can be found in the comments in `setup.py`.
  27. Note that if you use `HAVE_SEM_OPEN=0` then support for posix
  28. semaphores will not been compiled in, and then many of the functions
  29. in the `processing` namespace like `Lock()`, `Queue()` or will not be
  30. available. However, one can still create a manager using `manager =
  31. processing.Manager()` and then do `lock = manager.Lock()` etc.
  32. Running tests
  33. -------------
  34. To run the test scripts using Python 2.5 do ::
  35. python -m processing.tests
  36. and on Python 2.4 do ::
  37. python -c "from processing.tests import main; main()"
  38. This will run a number of test scripts using both processes and threads.