[python-feedcache] Apply a patch to avoid downloading Distribute

Luke Macken lmacken at fedoraproject.org
Wed Aug 27 22:27:12 UTC 2014


commit 0fd34d7e5e44cec61694087994136c41deb7244b
Author: Luke Macken <lmacken at redhat.com>
Date:   Wed Aug 27 16:26:37 2014 -0600

    Apply a patch to avoid downloading Distribute

 python-feedcache-distribute.patch |   13 +++++++++++++
 python-feedcache.spec             |    2 ++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/python-feedcache-distribute.patch b/python-feedcache-distribute.patch
new file mode 100644
index 0000000..8c1c91c
--- /dev/null
+++ b/python-feedcache-distribute.patch
@@ -0,0 +1,13 @@
+--- feedcache-1.4.1.orig/setup.py	2014-08-27 15:57:33.243973718 -0600
++++ feedcache-1.4.1/setup.py	2014-08-27 15:58:16.152959906 -0600
+@@ -26,10 +26,6 @@
+ 
+ """
+ 
+-# Bootstrap installation of Distribute
+-import distribute_setup
+-distribute_setup.use_setuptools()
+-
+ from setuptools import setup
+ 
+ PROJECT = 'feedcache'
diff --git a/python-feedcache.spec b/python-feedcache.spec
index 10b7c39..66f3413 100644
--- a/python-feedcache.spec
+++ b/python-feedcache.spec
@@ -11,6 +11,7 @@ Group:          Development/Languages
 License:        MIT
 URL:            http://feedcache.readthedocs.org
 Source0:        https://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
+Patch0:         %{name}-distribute.patch
 BuildArch:      noarch
 
 BuildRequires:  python-devel
@@ -27,6 +28,7 @@ parameterized to use different backend storage options.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch0 -p1 -b .distribute
 
 # Remove unnecessary shebangs to make rpmlint happy
 for file in cachestoragelock __init__ test_cachestoragelock test_cache cache test_server example example_threads test_shovefilesystem ; do


More information about the scm-commits mailing list