8e9734f
changeset:   754:f64c2d57df43
8e9734f
branch:      0.6-maintenance
8e9734f
tag:         tip
8e9734f
user:        Toshio Kuratomi <toshio@fedoraproject.org>
8e9734f
date:        Tue Feb 22 12:05:49 2011 -0800
8e9734f
summary:     Fix for easy_install running on python-3.2
8e9734f
8e9734f
diff -r 5bc94690ee6c -r f64c2d57df43 setuptools/command/easy_install.py
8e9734f
--- a/setuptools/command/easy_install.py	Sat Nov 06 15:01:33 2010 +0100
8e9734f
+++ b/setuptools/command/easy_install.py	Tue Feb 22 12:05:49 2011 -0800
8e9734f
@@ -204,6 +204,12 @@
4649b90
                             'exec_prefix': exec_prefix,
4649b90
                            }
8e9734f
 
4649b90
+        try:
4649b90
+            self.config_vars['abiflags'] = sys.abiflags
4649b90
+        except AttributeError:
8e9734f
+            # Only python-3.2+ has sys.abiflags
8e9734f
+            self.config_vars['abiflags'] = ''
8e9734f
+
4649b90
         if HAS_USER_SITE:
4649b90
             self.config_vars['userbase'] = self.install_userbase
8e9734f
             self.config_vars['usersite'] = self.install_usersite
8e9734f