0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 08:20:55 +01:00

Put the Python "system" include dir last, rather than first.

This commit is contained in:
Greg Ward 2000-03-29 04:13:49 +00:00
parent 41b4dd66c8
commit 1d16a9f040

View File

@ -113,7 +113,9 @@ class build_ext (Command):
self.include_dirs = string.split (self.include_dirs,
os.pathsep)
self.include_dirs.insert (0, py_include)
# Put the Python "system" include dir at the end, so that
# any local include dirs take precedence.
self.include_dirs.append (py_include)
if exec_py_include != py_include:
self.include_dirs.insert (0, exec_py_include)