source:
doc/python_module.rst
@
a4a00a5
Last change on this file since a4a00a5 was f8bf0c2, checked in by , 6 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[68daf5b] | 1 | .. _python-install: |
[d44763f] | 2 | |
[68daf5b] | 3 | Installing aubio for Python |
4 | =========================== | |
[34abeaf] | 5 | |
[d44763f] | 6 | The aubio extension for Python is available for Python 2.7 and Python 3. |
7 | ||
[5417b3a] | 8 | Installing aubio with pip |
9 | ------------------------- | |
[241e2fb] | 10 | |
[a9a1e79] | 11 | aubio can now be installed using ``pip``: |
[d44763f] | 12 | |
[3d8a6c0] | 13 | .. code-block:: console |
[241e2fb] | 14 | |
15 | $ pip install aubio | |
16 | ||
[34abeaf] | 17 | Building the module |
18 | ------------------- | |
19 | ||
20 | From ``aubio`` source directory, run the following: | |
21 | ||
[3d8a6c0] | 22 | .. code-block:: console |
[34abeaf] | 23 | |
[241e2fb] | 24 | $ ./setup.py clean |
[34abeaf] | 25 | $ ./setup.py build |
26 | $ sudo ./setup.py install | |
27 | ||
[f8bf0c2] | 28 | Checking your installation |
29 | -------------------------- | |
[5417b3a] | 30 | |
[109ba42] | 31 | Once the python module is installed, its version can be checked with: |
32 | ||
33 | .. code-block:: console | |
34 | ||
35 | $ python -c "import aubio; print(aubio.version, aubio.float_type)" | |
36 | ||
37 | The command line `aubio` is also installed: | |
38 | ||
39 | .. code-block:: console | |
40 | ||
41 | $ aubio -h | |
[34abeaf] | 42 | |
[5417b3a] | 43 | |
44 | Python tests | |
45 | ------------ | |
46 | ||
47 | A number of `python tests`_ are provided. To run them, use | |
48 | ``python/tests/run_all_tests``. | |
49 | ||
50 | .. _demo_filter.py: https://github.com/aubio/aubio/blob/master/python/demos/demo_filter.py | |
[d44763f] | 51 | .. _python tests: https://github.com/aubio/aubio/blob/master/python/tests |
Note: See TracBrowser
for help on using the repository browser.