3 Installing aubio for Python
4 ===========================
6 The aubio extension for Python is available for Python 2.7 and Python 3.
8 Installing aubio with pip
9 -------------------------
11 aubio can now be installed using ``pip``:
13 .. code-block:: console
20 From ``aubio`` source directory, run the following:
22 .. code-block:: console
26 $ sudo ./setup.py install
29 .. _py-doubleprecision:
34 This module can be compiled in double-precision mode, in which case the
35 default type for floating-point samples will be 64-bit. The default is
36 single precision mode (32-bit, recommended).
38 To build the aubio module with double precision, use the option
39 `--enable-double` of the `build_ext` subcommand:
44 $ ./setup.py build_ext --enable-double
47 **Note**: If linking against `libaubio`, make sure the library was also
48 compiled in :ref:`doubleprecision` mode.
51 Checking your installation
52 --------------------------
54 Once the python module is installed, its version can be checked with:
56 .. code-block:: console
58 $ python -c "import aubio; print(aubio.version, aubio.float_type)"
60 The command line `aubio` is also installed:
62 .. code-block:: console
70 A number of `python tests`_ are provided. To run them, use
71 ``python/tests/run_all_tests``.
73 .. _demo_filter.py: https://github.com/aubio/aubio/blob/master/python/demos/demo_filter.py
74 .. _python tests: https://github.com/aubio/aubio/blob/master/python/tests