mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Put the Python "system" include dir last, rather than first.
This commit is contained in:
parent
41b4dd66c8
commit
1d16a9f040
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue