-
- Downloads
[MRG+2] BUILD Rewrite setup.py files to handle cython dependencies (#7719)
* Rewriting of cythonization in setup.py By using Cython.Build.cythonize and switching between .c and .pyx files as appropriate cython dependencies are correctly taken into account. * Use cythonize once on the root config rather than in each subpackage * Fix for Windows * Remove caching from Travis Cython dependencies are taken care of by Cython.Build.cythonize and based on file timestamps, so .C and .so files will always be rebuild from scratch on each build in Travis. * Specify .pyx in setup.files for cython generated extensions More natural this way. Tweak the extensions to generate from .c and .cpp files for a release. * COSMIT Remove commented out code * Check cython version is greater than 0.23 * COSMIT better names for functions * flake8 fix (imported module not at top of file) * Install cython 0.23 for Python 2.6 now that cython >= 0.23 requirement is enforced in setup.py * Use module constant for minimum required cython version * Fix Travis install.sh No easy way to put comments inside multi-line command
Showing
- .travis.yml 3 additions, 12 deletions.travis.yml
- build_tools/cythonize.py 0 additions, 198 deletionsbuild_tools/cythonize.py
- build_tools/travis/install.sh 8 additions, 11 deletionsbuild_tools/travis/install.sh
- build_tools/travis/test_script.sh 1 addition, 4 deletionsbuild_tools/travis/test_script.sh
- setup.py 1 addition, 36 deletionssetup.py
- sklearn/__check_build/setup.py 1 addition, 1 deletionsklearn/__check_build/setup.py
- sklearn/_build_utils/__init__.py 50 additions, 1 deletionsklearn/_build_utils/__init__.py
- sklearn/cluster/setup.py 13 additions, 13 deletionssklearn/cluster/setup.py
- sklearn/datasets/setup.py 1 addition, 1 deletionsklearn/datasets/setup.py
- sklearn/decomposition/setup.py 2 additions, 2 deletionssklearn/decomposition/setup.py
- sklearn/ensemble/setup.py 1 addition, 1 deletionsklearn/ensemble/setup.py
- sklearn/feature_extraction/setup.py 1 addition, 1 deletionsklearn/feature_extraction/setup.py
- sklearn/linear_model/setup.py 3 additions, 3 deletionssklearn/linear_model/setup.py
- sklearn/manifold/setup.py 2 additions, 2 deletionssklearn/manifold/setup.py
- sklearn/metrics/cluster/setup.py 1 addition, 1 deletionsklearn/metrics/cluster/setup.py
- sklearn/metrics/setup.py 1 addition, 1 deletionsklearn/metrics/setup.py
- sklearn/neighbors/setup.py 4 additions, 4 deletionssklearn/neighbors/setup.py
- sklearn/setup.py 9 additions, 6 deletionssklearn/setup.py
- sklearn/svm/setup.py 5 additions, 5 deletionssklearn/svm/setup.py
- sklearn/tree/setup.py 4 additions, 4 deletionssklearn/tree/setup.py
Loading
Please register or sign in to comment