Skip to content

Commit bfe24d2

Browse files
committed
scripts: Use source Python installation include directory
The virtualenv's no longer copy Python.h.
1 parent dfcafb0 commit bfe24d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/internal/windows_build_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def venv_paths(python_version):
1616
check_call([venv_executable, venv_dir])
1717

1818
python_executable = os.path.join(venv_dir, "Scripts", "python.exe")
19-
python_include_dir = os.path.join(venv_dir, "Include")
19+
python_include_dir = "C:/Python%s/include" % (python_version)
2020

2121
# XXX It should be possible to query skbuild for the library dir associated
2222
# with a given interpreter.

0 commit comments

Comments
 (0)