From: Greg Ward Date: Wed, 29 Mar 2000 04:13:49 +0000 (+0000) Subject: Put the Python "system" include dir last, rather than first. X-Git-Tag: v1.6a1~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d16a9f040aadbfff9a0628d185c44c4159ce0b3;p=python Put the Python "system" include dir last, rather than first. --- diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 7d88c06332..96e7ce524f 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)