]> granicus.if.org Git - python/commitdiff
Put the Python "system" include dir last, rather than first.
authorGreg Ward <gward@python.net>
Wed, 29 Mar 2000 04:13:49 +0000 (04:13 +0000)
committerGreg Ward <gward@python.net>
Wed, 29 Mar 2000 04:13:49 +0000 (04:13 +0000)
Lib/distutils/command/build_ext.py

index 7d88c063327a57e8d9aeb1f5cf6417a4c1cba05e..96e7ce524fa7631b9189d145c941452474836893 100644 (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)