[Python-checkins] r82753 - python/branches/py3k/Lib/sysconfig.py
jeffrey.yasskin
python-checkins at python.org
Fri Jul 9 21:55:05 CEST 2010
Author: jeffrey.yasskin
Date: Fri Jul 9 21:55:05 2010
New Revision: 82753
Log:
Oops. Fix distutils tests that r82746 broke.
Modified:
python/branches/py3k/Lib/sysconfig.py
Modified: python/branches/py3k/Lib/sysconfig.py
==============================================================================
--- python/branches/py3k/Lib/sysconfig.py (original)
+++ python/branches/py3k/Lib/sysconfig.py Fri Jul 9 21:55:05 2010
@@ -262,7 +262,9 @@
# 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)
More information about the Python-checkins
mailing list