Oops. Fix distutils tests that r82746 broke.

This commit is contained in:
Jeffrey Yasskin 2010-07-09 19:55:05 +00:00
parent b669221bd1
commit 61c061a8b3
1 changed files with 3 additions and 1 deletions

View File

@ -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)