From 9d6978a8fad7a63501500fcc2fbf4a8501307522 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: May 15 2012 15:33:58 +0000 Subject: New version added filenames with spaces. Adjust accordingly --- diff --git a/distribute-py32.patch b/distribute-py32.patch deleted file mode 100644 index 6e7311f..0000000 --- a/distribute-py32.patch +++ /dev/null @@ -1,24 +0,0 @@ -changeset: 754:f64c2d57df43 -branch: 0.6-maintenance -tag: tip -user: Toshio Kuratomi -date: Tue Feb 22 12:05:49 2011 -0800 -summary: Fix for easy_install running on python-3.2 - -diff -r 5bc94690ee6c -r f64c2d57df43 setuptools/command/easy_install.py ---- a/setuptools/command/easy_install.py Sat Nov 06 15:01:33 2010 +0100 -+++ b/setuptools/command/easy_install.py Tue Feb 22 12:05:49 2011 -0800 -@@ -204,6 +204,12 @@ - '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 - diff --git a/python-setuptools.spec b/python-setuptools.spec index 866afd7..2c7c283 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -70,7 +70,9 @@ cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %endif # with_python3 -find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|' +for file in setuptools/command/easy_install.py distribute_setup.py ; do + sed -i '1s|^#!python|#!%{__python}|' $file +done %build