Commit 6b7bfe7a authored by Ned Deily's avatar Ned Deily

Issue #15188: Prevent test_ldshared_value failure due to slightly

different parsing of the Makefile by distutils.sysconfig and
sysconfig in the case when an intermediate config vars, used to
construct PY_CFLAGS or PY_LDFLAGS, has a trailing space character.
In this case, the OS X installer build script was leaving a
trailing space in the OPT and LDFLAGS config vars.  The space is not
significant and it's not worth toying with the Makefile parsing.
parent 896d0c20
...@@ -915,8 +915,8 @@ def buildPython(): ...@@ -915,8 +915,8 @@ def buildPython():
data = fp.read() data = fp.read()
fp.close() fp.close()
data = data.replace('-L%s/libraries/usr/local/lib'%(WORKDIR,), '') data = data.replace(' -L%s/libraries/usr/local/lib'%(WORKDIR,), '')
data = data.replace('-I%s/libraries/usr/local/include'%(WORKDIR,), '') data = data.replace(' -I%s/libraries/usr/local/include'%(WORKDIR,), '')
fp = open(path, 'w') fp = open(path, 'w')
fp.write(data) fp.write(data)
fp.close() fp.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment