Skip to content

Commit

Permalink
BLD Fix yet another meson.build dependency (#29087)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve committed May 23, 2024
1 parent 1bd9c1d commit 5e25db7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sklearn/metrics/_pairwise_distances_reduction/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
# needed for the cimport to work
_pairwise_distances_reduction_cython_tree = [
fs.copyfile('__init__.py'),
# We are in a sub-module of metrics, so we always need to have
# sklearn/metrics/__init__.py copied to the build directory to avoid the
# error:
# relative cimport beyond main package is not allowed
metrics_cython_tree
]

_classmode_pxd = fs.copyfile('_classmode.pxd')
Expand All @@ -30,7 +35,7 @@ _datasets_pair_pyx = custom_target(
_datasets_pair = py.extension_module(
'_datasets_pair',
[_datasets_pair_pxd, _datasets_pair_pyx,
_pairwise_distances_reduction_cython_tree, utils_cython_tree],
_pairwise_distances_reduction_cython_tree, utils_cython_tree],
dependencies: [np_dep, openmp_dep],
override_options: ['cython_language=cpp'],
cython_args: cython_args,
Expand Down

0 comments on commit 5e25db7

Please sign in to comment.