Skip to content

Commit

Permalink
docs: add instructions for building py from source
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Aug 13, 2024
1 parent cdcccbe commit 8f5a9a0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ The easiest way to install is to run::
pip install finufft

which downloads and installs the latest precompiled binaries from PyPI.
If you would like to compile from source, you can tell ``pip`` to compile the library from source with the option ``--no-binary`` using the command

pip install --no-binary finufft finufft

Note that ``finufft`` has to be specified twice (first as an argument to ``--no-binary`` and second as the package the is to be installed). This option also allows you to switch out the default FFT library (FFTW) for DUCC0 using

pip install --no-binary finufft finufft --config-settings=cmake.define.FINUFFT_USE_DUCC0=ON finufft

If you have ``pytest`` installed, you can test it with::

pytest python/finufft/test

or, without having ``pytest`` you can run the older-style eyeball check::

python3 python/finufft/test/run_accuracy_tests.py
Expand Down

0 comments on commit 8f5a9a0

Please sign in to comment.