source: doc/python_module.rst @ a4a00a5

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since a4a00a5 was f8bf0c2, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[doc] reorganize python doc

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[68daf5b]1.. _python-install:
[d44763f]2
[68daf5b]3Installing aubio for Python
4===========================
[34abeaf]5
[d44763f]6The aubio extension for Python is available for Python 2.7 and Python 3.
7
[5417b3a]8Installing aubio with pip
9-------------------------
[241e2fb]10
[a9a1e79]11aubio can now be installed using ``pip``:
[d44763f]12
[3d8a6c0]13.. code-block:: console
[241e2fb]14
15    $ pip install aubio
16
[34abeaf]17Building the module
18-------------------
19
20From ``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]28Checking your installation
29--------------------------
[5417b3a]30
[109ba42]31Once 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
37The command line `aubio` is also installed:
38
39.. code-block:: console
40
41    $ aubio -h
[34abeaf]42
[5417b3a]43
44Python tests
45------------
46
47A 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.