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