Skip to content

Commit

Permalink
Add PYTHON_EXECUTABLE variable to CMake build configuration in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Nov 14, 2024
1 parent 90d08ed commit 8c17f29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def build_extension(self, ext):
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={extdir}",
f"-DPYTHON_EXTENSION_SUFFIX={ext_suffix}",
f"-DACCELERATION={acceleration}",
f"-DPYTHON_EXECUTABLE={sys.executable}",
]

env = os.environ.copy()
Expand Down

0 comments on commit 8c17f29

Please sign in to comment.