diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2011-02-22 12:05:49 -0800 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2011-02-22 12:05:49 -0800 |
commit | e78f5a1f0ab26979bbd4167b7db86e8579ce3c1e (patch) | |
tree | ef5fe3a6fb54221f3da3957d027b62225d3e8b8d /setuptools/command/easy_install.py | |
parent | 71e69bc81462b72c45b2f86a689b9a680918cc0d (diff) | |
download | external_python_setuptools-e78f5a1f0ab26979bbd4167b7db86e8579ce3c1e.tar.gz external_python_setuptools-e78f5a1f0ab26979bbd4167b7db86e8579ce3c1e.tar.bz2 external_python_setuptools-e78f5a1f0ab26979bbd4167b7db86e8579ce3c1e.zip |
Fix for easy_install running on python-3.2
--HG--
branch : distribute
extra : rebase_source : caaf0829ce479d95efa48e5e422e699e0c4d8ff3
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 4ffef3de..1a0ee561 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -204,6 +204,12 @@ class easy_install(Command): 'exec_prefix': exec_prefix, } + try: + self.config_vars['abiflags'] = sys.abiflags + except AttributeError: + # Only python-3.2+ has sys.abiflags + self.config_vars['abiflags'] = '' + if HAS_USER_SITE: self.config_vars['userbase'] = self.install_userbase self.config_vars['usersite'] = self.install_usersite |