summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-29 04:13:49 (GMT)
committerGreg Ward <gward@python.net>2000-03-29 04:13:49 (GMT)
commit1d16a9f040aadbfff9a0628d185c44c4159ce0b3 (patch)
tree7d4a3472d4a3204a600aee2daf79a551ca2c3492 /Lib/distutils
parent41b4dd66c8a6c82ca6cad65c0557aadd269f6075 (diff)
downloadcpython-1d16a9f040aadbfff9a0628d185c44c4159ce0b3.zip
cpython-1d16a9f040aadbfff9a0628d185c44c4159ce0b3.tar.gz
cpython-1d16a9f040aadbfff9a0628d185c44c4159ce0b3.tar.bz2
Put the Python "system" include dir last, rather than first.
Diffstat (limited to 'Lib/distutils')
-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)