"make" things easier
This commit is contained in:
parent
13b283666a
commit
dfeb65fbd7
10
Makefile
Normal file
10
Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
ext:
|
||||
python setup.py build_ext --inplace
|
||||
|
||||
test:
|
||||
python -m pytest
|
||||
|
||||
clean:
|
||||
python setup.py clean --all
|
||||
find pyModeS/c_decoder -type f -name '*.c' -delete
|
||||
find pyModeS/c_decoder -type f -name '*.so' -delete
|
17
README.rst
17
README.rst
@ -321,8 +321,19 @@ Here is an example:
|
||||
|
||||
Unit test
|
||||
---------
|
||||
To perform unit tests. First, install ``tox`` through pip. Then, run the following commands:
|
||||
To perform unit tests, ``pytest`` must be install first.
|
||||
|
||||
.. code:: bash
|
||||
Build Cython extensions
|
||||
::
|
||||
|
||||
$ tox
|
||||
$ make ext
|
||||
|
||||
Run unit tests
|
||||
::
|
||||
|
||||
$ make test
|
||||
|
||||
Clean build files
|
||||
::
|
||||
|
||||
$ make clean
|
||||
|
Loading…
Reference in New Issue
Block a user