[arch-commits] Commit in python-distribute/trunk (2 files)

Stéphane Gaudreault stephane at archlinux.org
Wed Mar 2 13:03:11 UTC 2011


    Date: Wednesday, March 2, 2011 @ 08:03:10
  Author: stephane
Revision: 111950

upgpkg: python-distribute 0.6.14-7
Fix for easy_install unittests on python 3.2

Added:
  python-distribute/trunk/distribute-0.6.14-python32.patch
Modified:
  python-distribute/trunk/PKGBUILD

----------------------------------+
 PKGBUILD                         |   14 +++++++++++---
 distribute-0.6.14-python32.patch |   16 ++++++++++++++++
 2 files changed, 27 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-03-02 11:59:22 UTC (rev 111949)
+++ PKGBUILD	2011-03-02 13:03:10 UTC (rev 111950)
@@ -2,21 +2,29 @@
 # Contributor: Sebastien Binet <binet at farnsworth>
 pkgname=python-distribute
 pkgver=0.6.14
-pkgrel=6
+pkgrel=7
 pkgdesc="Easily build and distribute Python packages"
 arch=('any')
 license=('PSF')
 url="http://packages.python.org/distribute"
 depends=('python')
 source=(http://pypi.python.org/packages/source/d/distribute/distribute-${pkgver}.tar.gz
-        distribute-${pkgver}_python2_and_3.patch)
+        distribute-${pkgver}_python2_and_3.patch 
+        distribute-0.6.14-python32.patch)
 sha1sums=('6bea50b97f36bf751548bb486a534204a690aa4d'
-          'de635febfb11dc6878e5bdbac4a0e1d539c19d79')
+          'de635febfb11dc6878e5bdbac4a0e1d539c19d79'
+          '725c4a1933e6689e38d200451caf2dae73d758ef')
 
 build() {
    cd "${srcdir}/distribute-${pkgver}"
    patch -Np1 -i ../distribute-${pkgver}_python2_and_3.patch
+   
+   # Fix for easy_install unittests on python-3.2
+   patch -Np1 -i ../distribute-0.6.14-python32.patch
+
    python setup.py build
+
+   python setup.py test
 }
 
 package() {

Added: distribute-0.6.14-python32.patch
===================================================================
--- distribute-0.6.14-python32.patch	                        (rev 0)
+++ distribute-0.6.14-python32.patch	2011-03-02 13:03:10 UTC (rev 111950)
@@ -0,0 +1,16 @@
+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




More information about the arch-commits mailing list