[python-setuptools] Fix easy_install.py having a python3 shebang in the python2 package
Toshio くらとみ
toshio at fedoraproject.org
Mon Jun 11 15:20:02 UTC 2012
commit 0ef78f7cec781512e692fbd5c2f2896cf29d485d
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date: Mon Jun 11 08:19:49 2012 -0700
Fix easy_install.py having a python3 shebang in the python2 package
python-setuptools.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/python-setuptools.spec b/python-setuptools.spec
index 1f73c5a..9558e54 100644
--- a/python-setuptools.spec
+++ b/python-setuptools.spec
@@ -8,7 +8,7 @@
Name: python-setuptools
Version: 0.6.27
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Easily build and distribute Python packages
Group: Applications/System
@@ -73,9 +73,11 @@ find . -name '*.orig' -exec rm \{\} \;
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
+pushd %{py3dir}
for file in setuptools/command/easy_install.py distribute_setup.py ; do
sed -i '1s|^#!python|#!%{__python3}|' $file
done
+popd
%endif # with_python3
for file in setuptools/command/easy_install.py distribute_setup.py ; do
@@ -147,6 +149,9 @@ rm -rf %{buildroot}
%endif # with_python3
%changelog
+* Mon Jun 11 2012 Toshio Kuratomi <toshio at fedoraproject.org> - 0.6.27-2
+- Fix easy_install.py having a python3 shebang in the python2 package
+
* Thu Jun 7 2012 Toshio Kuratomi <toshio at fedoraproject.org> - 0.6.27-1
- Upstream bugfix
More information about the scm-commits
mailing list