From 937ed939ccecc722da7dc85e2d5bd3653e3b3710 Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Mon, 27 Jan 2025 16:48:40 +0100 Subject: [PATCH] fix include paths --- src/pystencils/jit/cpu/cpu_pybind11.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/pystencils/jit/cpu/cpu_pybind11.py b/src/pystencils/jit/cpu/cpu_pybind11.py index d0368a390..0229c5c4d 100644 --- a/src/pystencils/jit/cpu/cpu_pybind11.py +++ b/src/pystencils/jit/cpu/cpu_pybind11.py @@ -44,17 +44,22 @@ class CpuJit(JitBase): # Include Directories import pybind11 as pb11 - self._pybind11_include = pb11.get_include() + pybind11_include = pb11.get_include() import sysconfig - self._py_include = sysconfig.get_path("include") + python_include = sysconfig.get_path("include") + + from ...include import get_pystencils_include_path + + pystencils_include = get_pystencils_include_path() self._cxx_fixed_flags = [ "-shared", "-fPIC", - f"-I{self._py_include}", - f"-I{self._pybind11_include}", + f"-I{python_include}", + f"-I{pybind11_include}", + f"-I{pystencils_include}" ] @property -- GitLab