Skip to content

Commit 02752be

Browse files
khwilsonDanielBok
authored andcommitted
PYTHON_EXECUTABLE -> Python_EXECUTABLE
The environment variable name in cmake is spelled a bit strangely (Python_EXECUTABLE) but the extensions.py script spelled it PYTHON_EXECUTABLE. This was causing nlopt not to build on my macOS box. This commit fixes that environment variable name and now it builds on my arm Mac running Ventura.
1 parent 7707a49 commit 02752be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def build_extension(self, ext: Extension):
5151
"cmake",
5252
"-LAH",
5353
f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={_ed}",
54-
f"-DPYTHON_EXECUTABLE={sys.executable}",
54+
f"-DPython_EXECUTABLE={sys.executable}",
5555
"-DNLOPT_GUILE=OFF",
5656
"-DNLOPT_MATLAB=OFF",
5757
"-DNLOPT_OCTAVE=OFF",

0 commit comments

Comments
 (0)