@@ -19,15 +19,24 @@ Python:
1919 Of course, you'll need Python _.
2020 Any version where CFFI (see below) is supported should work.
2121 If you don't have Python installed yet, you should get one of the
22- distributions which already include CFFI (and many other useful things),
23- e.g. Anaconda _ or WinPython _.
22+ distributions which already include CFFI and NumPy (and many other useful
23+ things), e.g. Anaconda _ or WinPython _.
24+
25+ pip/setuptools:
26+ Those are needed for the installation of the Python module and its
27+ dependencies. Most systems will have these installed already, but if not,
28+ you should install it with your package manager or you can download and
29+ install pip and setuptools as described on the `pip installation `_ page.
30+ If you happen to have pip but not setuptools, use this command::
31+
32+ pip install setuptools --user
2433
2534CFFI:
2635 The `C Foreign Function Interface for Python `_ is used to access the C-API
2736 of the JACK library from within Python. It supports CPython 2.6, 2.7, 3.x;
2837 and is distributed with PyPy _ 2.0 beta2 or later.
2938 You should install it with your package manager (if it's not installed
30- already), or you can get it with pip _ ::
39+ already), or you can get it with::
3140
3241 pip install cffi --user
3342
@@ -41,26 +50,27 @@ JACK library:
4150 If you prefer, you can of course also download the sources and compile
4251 everything locally.
4352
44- setuptools :
45- This is needed for the installation of the Python module. Most systems will
46- have this installed already, but if not, you can install it with your
47- package manager or you can get it with pip _::
48-
49- pip install setuptools --user
53+ NumPy (optional) :
54+ NumPy _ is only needed if you want to NumPy arrays in the process callback.
55+ The only place where NumPy is needed is ` jack.OwnPort.get_array() `.
56+ If you need NumPy, you should install it with your package manager or use a
57+ Python distribution that already includes NumPy (see above).
58+ Installing NumPy with pip is not recommended.
5059
60+ .. _JACK : http://jackaudio.org/
61+ .. _NumPy : http://www.numpy.org/
5162.. _Python : http://www.python.org/
5263.. _Anaconda : http://docs.continuum.io/anaconda/
5364.. _WinPython : http://winpython.github.io/
5465.. _C Foreign Function Interface for Python : http://cffi.readthedocs.org/
5566.. _PyPy : http://pypy.org/
56- .. _JACK : http://jackaudio.org/
5767.. _JACK download page : http://jackaudio.org/downloads/
58- .. _pip : http://www.pip-installer.org/en/latest/installing.html
68+ .. _pip installation : http://www.pip-installer.org/en/latest/installing.html
5969
6070Installation
6171------------
6272
63- Once you have installed the above-mentioned dependencies, you can use pip _
73+ Once you have installed the above-mentioned dependencies, you can use pip
6474to download and install the latest release with a single command::
6575
6676 pip install JACK-Client --user
@@ -72,30 +82,6 @@ To un-install, use::
7282
7383 pip uninstall JACK-Client
7484
75- If you prefer, you can also download the package from PyPI _, extract it, change
76- to the main directory and install it using::
77-
78- python setup.py install --user
79-
80- .. _PyPI : http://pypi.python.org/pypi/JACK-Client/
81-
82- If you want to get the newest development version from Github _::
83-
84- git clone https://github.com/spatialaudio/jackclient-python.git
85- cd jackclient-python
86- python setup.py develop --user
87-
88- .. _Github : http://github.com/spatialaudio/jackclient-python/
89-
90- This way, your installation always stays up-to-date, even if you pull new
91- changes from the Github repository.
92-
93- If you prefer, you can also replace the last command with::
94-
95- pip install --user -e .
96-
97- ... where ``-e `` stands for ``--editable ``.
98-
9985If you want to avoid installation altogether, you can simply copy ``jack.py ``
10086to your working directory (or to any directory in your Python path).
10187
0 commit comments