summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-11-25 01:34:47 (GMT)
committerBarry Warsaw <barry@python.org>2010-11-25 01:34:47 (GMT)
commitd5eaa5fb5ae46ff323f37e69aa12c275d63e6d0e (patch)
tree2f85fbdfa321dc5f5686a765115ed3e896d906e4 /Lib/sysconfig.py
parent17f9b3d289ec2ba64338a0d2322e7be10eb65096 (diff)
downloadcpython-d5eaa5fb5ae46ff323f37e69aa12c275d63e6d0e.zip
cpython-d5eaa5fb5ae46ff323f37e69aa12c275d63e6d0e.tar.gz
cpython-d5eaa5fb5ae46ff323f37e69aa12c275d63e6d0e.tar.bz2
sys.abiflags may not be defined on all platforms.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index fe8c990..685c84e 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -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)