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
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ class build_ext (Command):
self.include_dirs = string.split (self.include_dirs, self.include_dirs = string.split (self.include_dirs,
os.pathsep) 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: if exec_py_include != py_include:
self.include_dirs.insert (0, exec_py_include) self.include_dirs.insert (0, exec_py_include)