diff options
| author | Barry Warsaw <barry@python.org> | 2010-11-25 03:46:44 +0000 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2010-11-25 03:46:44 +0000 |
| commit | 47c1750f35348e99498ca6e8fcec38b67efe95d9 (patch) | |
| tree | d3852c33f297963789a738148025a098d8baecbc | |
| parent | bc76c36d325cd64296b2d7a7420479c87e51be22 (diff) | |
| download | python-setuptools-git-47c1750f35348e99498ca6e8fcec38b67efe95d9.tar.gz | |
sys.abiflags is not defined on all platforms.
| -rw-r--r-- | command/install.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/command/install.py b/command/install.py index 7f9d00f2..bdc3a09b 100644 --- a/command/install.py +++ b/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: |
