From 61c061a8b39f4d567d7489413b0ef3a2cb50c2fc Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Fri, 9 Jul 2010 19:55:05 +0000 Subject: [PATCH] Oops. Fix distutils tests that r82746 broke. --- Lib/sysconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.40.0