summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/distutils/command/build_ext.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 7d88c06..96e7ce5 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -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)