mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
backport
This commit is contained in:
parent
7e17a76622
commit
593e66fd43
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -320,12 +320,13 @@ class PyBuildExt(build_ext):
|
||||||
# the environment variable is not set even though the value were passed
|
# the environment variable is not set even though the value were passed
|
||||||
# into configure and stored in the Makefile (issue found on OS X 10.3).
|
# into configure and stored in the Makefile (issue found on OS X 10.3).
|
||||||
for env_var, arg_name, dir_list in (
|
for env_var, arg_name, dir_list in (
|
||||||
|
('LDFLAGS', '-R', self.compiler.runtime_library_dirs),
|
||||||
('LDFLAGS', '-L', self.compiler.library_dirs),
|
('LDFLAGS', '-L', self.compiler.library_dirs),
|
||||||
('CPPFLAGS', '-I', self.compiler.include_dirs)):
|
('CPPFLAGS', '-I', self.compiler.include_dirs)):
|
||||||
env_val = sysconfig.get_config_var(env_var)
|
env_val = sysconfig.get_config_var(env_var)
|
||||||
if env_val:
|
if env_val:
|
||||||
# To prevent optparse from raising an exception about any
|
# To prevent optparse from raising an exception about any
|
||||||
# options in env_val that is doesn't know about we strip out
|
# options in env_val that it doesn't know about we strip out
|
||||||
# all double dashes and any dashes followed by a character
|
# all double dashes and any dashes followed by a character
|
||||||
# that is not for the option we are dealing with.
|
# that is not for the option we are dealing with.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue