Commit 61c061a8 authored by Jeffrey Yasskin's avatar Jeffrey Yasskin

Oops. Fix distutils tests that r82746 broke.

parent b669221b
......@@ -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)
......
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