Skip to content

Commit c59b09b

Browse files
committed
Trying to fix finding the right executable with cibuildwheel.
1 parent bb53026 commit c59b09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def build_extension(self, ext):
5353
cmake_args = [
5454
f"-DCMAKE_BUILD_TYPE={cfg}",
5555
f"-DCMAKE_INSTALL_PREFIX={bf_dir}",
56-
f"-Dpybind11_DIR={pybind11_dir}"
56+
f"-Dpybind11_DIR={pybind11_dir}",
57+
f"-DPython_EXECUTABLE={sys.executable}"
5758
]
5859

5960
# Optional: use Ninja if available

0 commit comments

Comments
 (0)