sys.abiflags may not be defined on all platforms.

This commit is contained in:
Barry Warsaw 2010-11-25 01:34:47 +00:00
parent 17f9b3d289
commit d5eaa5fb5a
1 changed files with 5 additions and 1 deletions

View File

@ -475,7 +475,11 @@ def get_config_vars(*args):
_CONFIG_VARS['base'] = _PREFIX
_CONFIG_VARS['platbase'] = _EXEC_PREFIX
_CONFIG_VARS['projectbase'] = _PROJECT_BASE
_CONFIG_VARS['abiflags'] = sys.abiflags
try:
_CONFIG_VARS['abiflags'] = sys.abiflags
except AttributeError:
# sys.abiflags may not be defined on all platforms.
_CONFIG_VARS['abiflags'] = ''
if os.name in ('nt', 'os2'):
_init_non_posix(_CONFIG_VARS)