From: Brett Cannon Date: Sun, 3 Feb 2008 02:08:45 +0000 (+0000) Subject: Directories from CPPFLAGS and LDFLAGS were being added in the reverse order for X-Git-Tag: v2.6a1~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=861e39678f574496c6e730753f12cbd7f59b6541;p=thirdparty%2FPython%2Fcpython.git Directories from CPPFLAGS and LDFLAGS were being added in the reverse order for searches as to how they were listed in the environment variable. --- diff --git a/setup.py b/setup.py index 51ef16b55c9b..dace7ca8f452 100644 --- a/setup.py +++ b/setup.py @@ -327,7 +327,7 @@ class PyBuildExt(build_ext): parser.add_option(arg_name, dest="dirs", action="append") options = parser.parse_args(env_val.split())[0] if options.dirs: - for directory in options.dirs: + for directory in reversed(options.dirs): add_dir_to_list(dir_list, directory) if os.path.normpath(sys.prefix) != '/usr':