From: Jeffrey Yasskin Date: Fri, 9 Jul 2010 19:55:05 +0000 (+0000) Subject: Oops. Fix distutils tests that r82746 broke. X-Git-Tag: v3.2a1~249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61c061a8b39f4d567d7489413b0ef3a2cb50c2fc;p=python Oops. Fix distutils tests that r82746 broke. --- diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index d59a682901..50c81332aa 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -262,7 +262,9 @@ def _parse_makefile(filename, vars=None): # Add in CFLAGS, LDFLAGS, and CPPFLAGS, which are named with a # prefix in the Makefile. for var in ('CFLAGS', 'LDFLAGS', 'CPPFLAGS'): - done[var] = done['PY_' + var] + makefile_value = done.get('PY_' + var) + if makefile_value is not None: + done[var] = makefile_value # save the results in the global dictionary vars.update(done)