Skip to content

Commit e42a370

Browse files
committed
Merge pull request scikit-learn#6274 from jakevdp/setup_py_fix
[MRG+1] MAINT: Make sure all tests are included with installation
2 parents 82d9b48 + 304f4b5 commit e42a370

File tree

13 files changed

+36
-26
lines changed

13 files changed

+36
-26
lines changed

sklearn/cluster/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def configuration(parent_package='', top_path=None):
4545
**blas_info
4646
)
4747

48+
config.add_subpackage('tests')
49+
4850
return config
4951

5052
if __name__ == '__main__':

sklearn/cross_decomposition/tests/__init__.py

Whitespace-only changes.

sklearn/datasets/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def configuration(parent_package='', top_path=None):
1313
config.add_extension('_svmlight_format',
1414
sources=['_svmlight_format.c'],
1515
include_dirs=[numpy.get_include()])
16-
16+
config.add_subpackage('tests')
1717
return config
1818

1919

sklearn/feature_extraction/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ def configuration(parent_package='', top_path=None):
1414
sources=['_hashing.c'],
1515
include_dirs=[numpy.get_include()],
1616
libraries=libraries)
17+
config.add_subpackage("tests")
1718

1819
return config

sklearn/manifold/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def configuration(parent_package="", top_path=None):
2727
blas_info.pop('include_dirs', [])],
2828
extra_compile_args=eca, **blas_info)
2929

30+
config.add_subpackage('tests')
31+
3032
return config
3133

3234
if __name__ == "__main__":

sklearn/manifold/tests/__init__.py

Whitespace-only changes.

sklearn/metrics/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def configuration(parent_package="", top_path=None):
2323
extra_compile_args=blas_info.pop('extra_compile_args',
2424
[]),
2525
**blas_info)
26+
config.add_subpackage('tests')
2627

2728
return config
2829

sklearn/model_selection/tests/__init__.py

Whitespace-only changes.

sklearn/model_selection/tests/test_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
from sklearn.datasets import make_classification
5858
from sklearn.datasets import make_multilabel_classification
5959

60-
from test_split import MockClassifier
60+
from sklearn.model_selection.tests.test_split import MockClassifier
6161

6262

6363
class MockImprovingEstimator(BaseEstimator):

sklearn/neighbors/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ def configuration(parent_package='', top_path=None):
3232
include_dirs=[numpy.get_include()],
3333
libraries=libraries)
3434

35+
config.add_subpackage('tests')
36+
3537
return config

0 commit comments

Comments
 (0)