summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-11-25 03:46:44 (GMT)
committerBarry Warsaw <barry@python.org>2010-11-25 03:46:44 (GMT)
commitbd86301070e38726532ae57e7d1bdc01143b298b (patch)
treee5527c10d6ff70cbf55adcd9ba46af231f7c155d
parentd5eaa5fb5ae46ff323f37e69aa12c275d63e6d0e (diff)
downloadcpython-bd86301070e38726532ae57e7d1bdc01143b298b.zip
cpython-bd86301070e38726532ae57e7d1bdc01143b298b.tar.gz
cpython-bd86301070e38726532ae57e7d1bdc01143b298b.tar.bz2
sys.abiflags is not defined on all platforms.
-rw-r--r--Lib/distutils/command/install.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 7f9d00f..bdc3a09 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -313,6 +313,11 @@ class install(Command):
py_version = sys.version.split()[0]
(prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
+ try:
+ abiflags = sys.abiflags
+ except AttributeError:
+ # sys.abiflags may not be defined on all platforms.
+ abiflags = ''
self.config_vars = {'dist_name': self.distribution.get_name(),
'dist_version': self.distribution.get_version(),
'dist_fullname': self.distribution.get_fullname(),
@@ -323,7 +328,7 @@ class install(Command):
'prefix': prefix,
'sys_exec_prefix': exec_prefix,
'exec_prefix': exec_prefix,
- 'abiflags': sys.abiflags,
+ 'abiflags': abiflags,
}
if HAS_USER_SITE: