| 1 |
.. _dev-building-extension: |
| 2 |
|
| 3 |
Building and installing PyWavelets |
| 4 |
================================== |
| 5 |
|
| 6 |
Installing from source code |
| 7 |
--------------------------- |
| 8 |
|
| 9 |
Go to https://github.com/PyWavelets/pywt GitHub project page, fork and clone the |
| 10 |
repository or use the upstream repository to get the source code:: |
| 11 |
|
| 12 |
git clone https://github.com/PyWavelets/pywt.git PyWavelets |
| 13 |
|
| 14 |
Activate your Python virtual environment, go to the cloned source directory |
| 15 |
and type the following commands to build and install the package:: |
| 16 |
|
| 17 |
python setup.py build |
| 18 |
python setup.py install |
| 19 |
|
| 20 |
To verify the installation run the following command:: |
| 21 |
|
| 22 |
python setup.py test |
| 23 |
|
| 24 |
To build docs:: |
| 25 |
|
| 26 |
cd doc |
| 27 |
make html |
| 28 |
|
| 29 |
Installing a development version |
| 30 |
-------------------------------- |
| 31 |
|
| 32 |
You can also install directly from the source repository:: |
| 33 |
|
| 34 |
pip install -e git+https://github.com/PyWavelets/pywt.git#egg=PyWavelets |
| 35 |
|
| 36 |
or:: |
| 37 |
|
| 38 |
pip install PyWavelets==dev |
| 39 |
|
| 40 |
|
| 41 |
Installing a regular release from PyPi |
| 42 |
-------------------------------------- |
| 43 |
|
| 44 |
A regular release can be installed with pip or easy_install:: |
| 45 |
|
| 46 |
pip install PyWavelets |
| 47 |
|