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 623cee4 commit 29b5195
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 @@ -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,
Expand Down

0 comments on commit 29b5195

Please sign in to comment.