File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
sklearn/metrics/_pairwise_distances_reduction Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11
11
# needed for the cimport to work
12
12
_pairwise_distances_reduction_cython_tree = [
13
13
fs.copyfile(' __init__.py' ),
14
+ # We are in a sub-module of metrics, so we always need to have
15
+ # sklearn/metrics/__init__.py copied to the build directory to avoid the
16
+ # error:
17
+ # relative cimport beyond main package is not allowed
18
+ metrics_cython_tree
14
19
]
15
20
16
21
_classmode_pxd = fs.copyfile(' _classmode.pxd' )
@@ -30,7 +35,7 @@ _datasets_pair_pyx = custom_target(
30
35
_datasets_pair = py.extension_module(
31
36
' _datasets_pair' ,
32
37
[_datasets_pair_pxd, _datasets_pair_pyx,
33
- _pairwise_distances_reduction_cython_tree, utils_cython_tree],
38
+ _pairwise_distances_reduction_cython_tree, utils_cython_tree],
34
39
dependencies : [np_dep, openmp_dep],
35
40
override_options : [' cython_language=cpp' ],
36
41
cython_args : cython_args,
You can’t perform that action at this time.
0 commit comments