mirror of https://github.com/python/cpython
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:
parent
9a8bb0e316
commit
861e39678f
2
setup.py
2
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':
|
||||
|
|
Loading…
Reference in New Issue