From f5a934776866ec7e68031f882d44f5d8f7c99c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Simonis?= Date: Thu, 4 Jul 2024 12:26:58 +0200 Subject: [PATCH] Fixes the numpy include order This leads to the system numpy being considered after local installations. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a82e8569..31750061 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ def get_extensions(is_test): compile_args = [] link_args = [] compile_args.append("-std=c++17") - compile_args.append("-I{}".format(numpy.get_include())) + include_dirs = [numpy.get_include()] bindings_sources = [os.path.join(PYTHON_BINDINGS_PATH, "cyprecice", "cyprecice" + ".pyx")] @@ -84,6 +84,7 @@ def get_extensions(is_test): sources=bindings_sources, libraries=[], language="c++", + include_dirs=include_dirs, extra_compile_args=compile_args, extra_link_args=link_args )