Directories from CPPFLAGS and LDFLAGS were being added in the reverse order for

searches as to how they were listed in the environment variable.
This commit is contained in:
Brett Cannon 2008-02-03 02:08:45 +00:00
parent 9a8bb0e316
commit 861e39678f
1 changed files with 1 additions and 1 deletions

View File

@ -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':