mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Since it is a possibility that LDFLAGS or CPPFLAGS were set with options that
in no way affect library or include directories the code must take that into account and not assume some options were found.
This commit is contained in:
parent
c34f8673a1
commit
44837719ef
1 changed files with 3 additions and 2 deletions
5
setup.py
5
setup.py
|
@ -270,8 +270,9 @@ class PyBuildExt(build_ext):
|
|||
parser.error = lambda msg: None
|
||||
parser.add_option(arg_name, dest="dirs", action="append")
|
||||
options = parser.parse_args(env_val.split())[0]
|
||||
for directory in options.dirs:
|
||||
add_dir_to_list(dir_list, directory)
|
||||
if options.dirs:
|
||||
for directory in options.dirs:
|
||||
add_dir_to_list(dir_list, directory)
|
||||
|
||||
if os.path.normpath(sys.prefix) != '/usr':
|
||||
add_dir_to_list(self.compiler.library_dirs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue