Jed Brown added the comment: Undefined variables are still a problem:
$ echo 'FROTZ = ${CFLAGS}' > make.py3 $ python3 Python 3.3.1 (default, Apr 6 2013, 19:03:55) [GCC 4.8.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import distutils.sysconfig >>> distutils.sysconfig.parse_makefile('make.py3') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.3/distutils/sysconfig.py", line 367, in parse_makefile item = str(done['PY_' + n]) KeyError: 'PY_CFLAGS' Proposed fix: --- i/Lib/distutils/sysconfig.py +++ w/Lib/distutils/sysconfig.py @@ -357,7 +357,7 @@ def parse_makefile(fn, g=None): found = False else: - item = str(done['PY_' + n]) + item = str(done.get('PY_' + n, '')) else: done[n] = item = "" if found: ---------- nosy: +jedbrown _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9189> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com