Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3eb87025 authored by GD's avatar GD
Browse files

re-include test and data files in the installation following setuptools...

re-include test and data files in the installation following setuptools recommandation (c.f. https://setuptools.pypa.io/en/latest/userguide/datafiles.html)
parent 75509b5f
Branches
No related tags found
No related merge requests found
...@@ -5,6 +5,6 @@ include version ...@@ -5,6 +5,6 @@ include version
recursive-include spams_wrap *.h recursive-include spams_wrap *.h
recursive-include spams_wrap *.cpp recursive-include spams_wrap *.cpp
recursive-include tests *.py recursive-include spams/tests *.py
recursive-include data *.png recursive-include spams/data *.png
recursive-include doc * recursive-include doc *
...@@ -50,8 +50,8 @@ Manipulated objects are imported from numpy and scipy. Matrices should be stored ...@@ -50,8 +50,8 @@ Manipulated objects are imported from numpy and scipy. Matrices should be stored
### Testing the interface ### Testing the interface
```bash ```bash
python tests/test_spams.py -h # to get help python spams/tests/test_spams.py -h # to get help
python tests/test_spams.py # will run all the tests python spams/tests/test_spams.py # will run all the tests
``` ```
--- ---
......
...@@ -196,6 +196,9 @@ opts = dict( ...@@ -196,6 +196,9 @@ opts = dict(
packages=find_packages(), packages=find_packages(),
cmdclass={'build_ext': CustomBuildExtCommand}, cmdclass={'build_ext': CustomBuildExtCommand},
ext_modules=get_extension(), ext_modules=get_extension(),
package_data={
"spams": ["data/*.png", "tests/*.py"]
},
zip_safe=True zip_safe=True
) )
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment