From 29b5195b87719db945c49ed88e72fddfb1411d29 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 11 Oct 2024 09:46:08 -0700 Subject: [PATCH] `setup.py`: Hint pybind11 `FindPythonLibsNew` pybind11 interestingly still takes the all-caps `PYTHON_EXECUTABLE` as a hint to find the Python location. Signed-off-by: Axel Huebl --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 480089744..f7518166c 100644 --- a/setup.py +++ b/setup.py @@ -78,7 +78,10 @@ def build_extension(self, ext): "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + os.path.join(extdir, "impactx"), "-DCMAKE_VERBOSE_MAKEFILE=ON", "-DCMAKE_PYTHON_OUTPUT_DIRECTORY=" + extdir, + # CMake FindPython.cmake "-DPython_EXECUTABLE=" + sys.executable, + # pybind11 FindPythonLibsNew.cmake + "-DPYTHON_EXECUTABLE=" + sys.executable, ## variants "-DImpactX_COMPUTE=" + ImpactX_COMPUTE, "-DImpactX_FFT:BOOL=" + ImpactX_FFT,