Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLD Fix yet another meson.build dependency #29087

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading