You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ned-deily'closed_at=<Date2014-07-07.04:30:15.047>created_at=<Date2014-07-05.16:44:20.009>labels= ['library']
title='distutils.sysconfig.customize_compiler will try to read variable that has not been initialized'updated_at=<Date2014-07-07.04:30:15.046>user='https://github.com/alex'
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.
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).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: