From e78f5a1f0ab26979bbd4167b7db86e8579ce3c1e Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 22 Feb 2011 12:05:49 -0800 Subject: Fix for easy_install running on python-3.2 --HG-- branch : distribute extra : rebase_source : caaf0829ce479d95efa48e5e422e699e0c4d8ff3 --- setuptools/command/easy_install.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'setuptools/command') 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 -- cgit v1.2.3