Ned Deily added the comment:
Thanks for the patch, Alex, and sorry about the bug. The fix looks good. I've
added a test that should be valid whether or not a compiler is available and, I
hope, on Windows (I haven't tested it there).
--
stage: - patch review
versions: +Python 3.5
Changes by Ned Deily n...@acm.org:
Added file: http://bugs.python.org/file35873/issue21923_27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
Alex Gaynor added the comment:
Test looks reasonable to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset bdbfbb57e37e by Ned Deily in branch '2.7':
Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
http://hg.python.org/cpython/rev/bdbfbb57e37e
New changeset 78fa18e95445 by Ned Deily in branch '3.4':
Issue #21923: Prevent
Ned Deily added the comment:
Committed for release in 2.7.9, 3.4.2, and 3.5.0.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
New submission from Alex Gaynor:
If one invokes some distutils code too early, this function will try to read
``_config_vars`` before it is initialized.
http://bpaste.net/show/1DOGhL8sdnkPyLTL06AZ/ is an example traceback that
results.
The attached patch uses the public API which guarantees
Changes by Ned Deily n...@acm.org:
--
assignee: - ned.deily
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
___