From 425d2b4f36605a153b48d7539f22a6816c305266 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 11 Oct 2024 09:42: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 6e61cdd3..8e83eac7 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,10 @@ def build_extension(self, ext): "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + os.path.join(extdir, "amrex"), "-DCMAKE_VERBOSE_MAKEFILE=ON", "-DCMAKE_PYTHON_OUTPUT_DIRECTORY=" + extdir, + # CMake FindPython.cmake "-DPython_EXECUTABLE=" + sys.executable, + # pybind11 FindPythonLibsNew.cmake + "-DPYTHON_EXECUTABLE=" + sys.executable, "-DAMReX_SPACEDIM=" + dims, ## variants "-DAMReX_OMP=" + AMReX_OMP,