Installation

Prerequisites

  • Python >= 3.9

  • FFTW3 development headers

  • A C compiler (gcc or clang)

Install FFTW3 for your platform:

Ubuntu / Debian

sudo apt install libfftw3-dev

macOS (Homebrew)

brew install fftw

Fedora / RHEL

sudo dnf install fftw-devel

Installing from PyPI (pre-built wheels)

pip install pyminidsp

Pre-built wheels include the compiled C extension and bundled FFTW3 library, so no C compiler or FFTW3 headers are needed.

Installing from source

# Clone the miniDSP C library
git clone https://github.com/wooters/miniDSP.git

# Install pyminidsp (set MINIDSP_SRC to point to the C library)
MINIDSP_SRC=./miniDSP pip install .

Development install

git clone https://github.com/wooters/pyminidsp.git
cd pyminidsp
git clone https://github.com/wooters/miniDSP.git

pip install cffi numpy
MINIDSP_SRC=./miniDSP python pyminidsp/_build_minidsp.py
pip install -e ".[dev,docs]"

# Run the test suite
python -m pytest tests/ -v

# Build the documentation
cd docs && make html