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 dc68659 commit 2d223b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def build_extension(self, ext):
cmake_args = [
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + os.path.join(extdir, "pywarpx"),
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=" + extdir,
# CMake FindPython.cmake
"-DPython_EXECUTABLE=" + sys.executable,
# pybind11 FindPythonLibsNew.cmake
"-DPYTHON_EXECUTABLE=" + sys.executable,
"-DWarpX_DIMS=" + dims,
"-DWarpX_APP:BOOL=OFF",
## variants
Expand Down

0 comments on commit 2d223b0

Please sign in to comment.