From da8b0520db16434267e65e6f88f2648753b510c7 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Jul 26 2010 17:25:18 +0000 Subject: Enforce use of system's setuptools --- diff --git a/blist-1.2.1-use-sys-setuptools.patch b/blist-1.2.1-use-sys-setuptools.patch new file mode 100644 index 0000000..d3e479c --- /dev/null +++ b/blist-1.2.1-use-sys-setuptools.patch @@ -0,0 +1,11 @@ +--- blist-1.2.1/setup.py.use-sys-setuptools 2010-07-23 20:03:32.000000000 +0200 ++++ blist-1.2.1/setup.py 2010-07-26 19:20:02.755272437 +0200 +@@ -1,8 +1,6 @@ + #!/usr/bin/env python + + import sys +-import distribute_setup +-distribute_setup.use_setuptools() + from setuptools import setup, Extension + + define_macros = [] diff --git a/python-blist.spec b/python-blist.spec index 0ae33b5..5cbe92e 100644 --- a/python-blist.spec +++ b/python-blist.spec @@ -9,6 +9,7 @@ Group: Development/Languages License: BSD URL: http://pypi.python.org/pypi/blist/ Source0: http://pypi.python.org/packages/source/b/blist/blist-%{version}.tar.gz +Patch0: blist-1.2.1-use-sys-setuptools.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel python-setuptools @@ -24,6 +25,7 @@ inefficient if you need to create a larger number of small lists. %prep %setup -q -n blist-%{version} +%patch0 -p1 -b .use-sys-setuptools # Replace the not-zip-safe file; keep rpmlint happy by not having # CRLF line endings