[python-paver] Remove the site.py that the install is creating

Toshio くらとみ toshio at fedoraproject.org
Thu Aug 2 18:39:18 UTC 2012


commit 0ca5ab84e0bad25ab96a540b6bbd0d36f3ba7417
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date:   Thu Aug 2 11:39:11 2012 -0700

    Remove the site.py that the install is creating

 python-paver.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/python-paver.spec b/python-paver.spec
index 5372dd8..0e5c588 100644
--- a/python-paver.spec
+++ b/python-paver.spec
@@ -5,7 +5,7 @@
 %define srcname Paver
 Name: python-paver
 Version: 1.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Python-based build/distribution/deployment scripting tool
 
 Group: Development/Languages
@@ -75,7 +75,11 @@ PYTHONPATH=%{buildroot}%{python_sitelib}
 export PYTHONPATH
 
 %{__python} setup.py install --skip-build --root %{buildroot}
-
+# And another stupid setuptools workaround
+# (paver-1.1.0+ is using the setuptools easy_install() command to install.
+# That command creates site.py we'll have to check if this affects every
+# package that uses paver to install)
+rm %{buildroot}%{python_sitelib}/site.py*
 
 %clean
 rm -rf %{buildroot}
@@ -88,6 +92,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Aug  2 2012 Toshio Kuratomi <toshio at fedoraproject.org> - 1.1.0-2
+- Remove the site.py that the install is creating
+
 * Mon Jul 30 2012 Toshio Kuratomi <toshio at fedoraproject.org> - 1.1.0-1
 - New upstream update
 


More information about the scm-commits mailing list