mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue