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

Stéphane Gaudreault stephane at nymeria.archlinux.org
Wed May 22 01:41:08 UTC 2013


    Date: Wednesday, May 22, 2013 @ 03:41:08
  Author: stephane
Revision: 186204

upgpkg: python-distribute 0.6.40-1

upstream update

Modified:
  python-distribute/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-22 01:10:58 UTC (rev 186203)
+++ PKGBUILD	2013-05-22 01:41:08 UTC (rev 186204)
@@ -3,7 +3,7 @@
 # Contributor: Sebastien Binet <binet at farnsworth>
 pkgbase=python-distribute
 pkgname=('python-distribute' 'python2-distribute')
-pkgver=0.6.39
+pkgver=0.6.40
 pkgrel=1
 pkgdesc="Easily build and distribute Python packages"
 arch=('any')
@@ -12,9 +12,10 @@
 makedepends=('python' 'python2')
 source=(http://pypi.python.org/packages/source/d/distribute/distribute-${pkgver}.tar.gz
         distribute-python2_and_3.patch)
-sha1sums=('1dd11f1c9143c25ede79347873832e6b5db7226f'
+sha1sums=('46654be10177014bbb502a4c516627173de67d15'
           '420bc5d35e1dbfff8015f12e1a13d46973e34c68')
-build() {
+
+prepare() {
    cd "${srcdir}"
 
    pushd distribute-${pkgver}
@@ -23,18 +24,20 @@
 
    cp -a distribute-${pkgver}{,-python2}
 
-   # Build python 3 module
-   cd distribute-${pkgver}
-
+   cd "${srcdir}"/distribute-${pkgver}
    sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py
 
+   cd ../distribute-${pkgver}-python2
+   sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd "${srcdir}"/distribute-${pkgver}
    python3 setup.py build
 
    # Build python 2 module
    cd ../distribute-${pkgver}-python2
-
-   sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
-
    python2 setup.py build
 }
 




More information about the arch-commits mailing list