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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 05:39:01 UTC 2018


    Date: Saturday, June 30, 2018 @ 05:39:01
  Author: felixonmars
Revision: 347905

upgpkg: python-pystemmer 1.3.0-3

Python 3.7 rebuild

Modified:
  python-pystemmer/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-30 04:26:39 UTC (rev 347904)
+++ PKGBUILD	2018-06-30 05:39:01 UTC (rev 347905)
@@ -4,16 +4,19 @@
 pkgbase=python-pystemmer
 pkgname=('python-pystemmer' 'python2-pystemmer')
 pkgver=1.3.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Snowball stemming algorithms, for information retrieval"
 arch=('x86_64')
 license=('BSD' 'MIT')
 url="http://snowball.tartarus.org"
-makedepends=('python' 'python2')
+makedepends=('python' 'python2' 'cython' 'cython2')
 source=("http://snowball.tartarus.org/wrappers/PyStemmer-$pkgver.tar.gz")
 sha512sums=('35f40606347ead6a6068dae28aa24f5becfa0e52930998027a7b20955f331c6bd4762158267be7d40857ea8aae0084a07f663dbd48c4aa6aac10ce90f26c2a2d')
 
 prepare() {
+  # Force cython rebuild
+  rm PyStemmer-$pkgver/src/Stemmer.c
+ 
   cp -a PyStemmer-$pkgver{,-py2}
 }
 
@@ -27,7 +30,7 @@
 
 check() {
   cd "$srcdir/PyStemmer-$pkgver"
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" python runtests.py
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.7:$PYTHONPATH" python runtests.py
 
   cd "$srcdir/PyStemmer-$pkgver-py2"
   PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 runtests.py



More information about the arch-commits mailing list