Skip to content

Commit 857ccd9

Browse files
oleksandr-pavlykjnothman
authored andcommitted
MAINT: correct cythonization of sklearn.metrics.cluster to avoid warning (#10851)
1 parent a1a7f4a commit 857ccd9

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

sklearn/metrics/cluster/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def configuration(parent_package="", top_path=None):
8-
config = Configuration("metrics/cluster", parent_package, top_path)
8+
config = Configuration("cluster", parent_package, top_path)
99
libraries = []
1010
if os.name == 'posix':
1111
libraries.append('m')

sklearn/metrics/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def configuration(parent_package="", top_path=None):
1414
if os.name == 'posix':
1515
cblas_libs.append('m')
1616

17+
config.add_subpackage('cluster')
1718
config.add_extension("pairwise_fast",
1819
sources=["pairwise_fast.pyx"],
1920
include_dirs=[os.path.join('..', 'src', 'cblas'),

sklearn/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def configuration(parent_package='', top_path=None):
5151
config.add_subpackage('feature_extraction')
5252
config.add_subpackage('manifold')
5353
config.add_subpackage('metrics')
54-
config.add_subpackage('metrics/cluster')
5554
config.add_subpackage('neighbors')
5655
config.add_subpackage('tree')
5756
config.add_subpackage('svm')

0 commit comments

Comments
 (0)