Skip to content

Commit

Permalink
setup.py: Hint pybind11 FindPythonLibsNew
Browse files Browse the repository at this point in the history
pybind11 interestingly still takes the all-caps `PYTHON_EXECUTABLE`
as a hint to find the Python location.

Signed-off-by: Axel Huebl <[email protected]>
  • Loading branch information
ax3l committed Oct 11, 2024
1 parent 8742a79 commit 425d2b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 425d2b4

Please sign in to comment.