[New-bugs-announce] [issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

Alex Gaynor report at bugs.python.org
Sat Jul 5 18:44:20 CEST 2014


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 that it is defined.

----------
components: Distutils
files: sysconfig.diff
keywords: patch
messages: 222373
nosy: alex, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils.sysconfig.customize_compiler will try to read variable that has not been initialized
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file35870/sysconfig.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21923>
_______________________________________


More information about the New-bugs-announce mailing list