[arch-commits] Commit in python-scikit-learn/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Sep 4 08:55:05 UTC 2014
Date: Thursday, September 4, 2014 @ 10:55:04
Author: aginiewicz
Revision: 118255
upgpkg: python-scikit-learn 0.15.1-2
python-scikit-learn: fix mtime
Modified:
python-scikit-learn/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-04 08:48:57 UTC (rev 118254)
+++ PKGBUILD 2014-09-04 08:55:04 UTC (rev 118255)
@@ -4,7 +4,7 @@
pkgbase=python-scikit-learn
pkgname=('python2-scikit-learn' 'python-scikit-learn')
pkgver=0.15.1
-pkgrel=1
+pkgrel=2
pkgdesc="A set of python modules for machine learning and data mining"
arch=('i686' 'x86_64')
url="http://scikit-learn.sourceforge.net/"
@@ -17,10 +17,18 @@
md5sums=('133771b23e245eeb3150940d59a3581c'
'327083d2576cc0aad1b8f10b2bcd2974')
-build() {
+prepare() {
cd "$srcdir"
cp -a scikit-learn-$pkgver scikit-learn-py2-$pkgver
+ cd scikit-learn-py2-$pkgver
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
msg "Building Python2"
cd "$srcdir"/scikit-learn-py2-$pkgver
python2 setup.py build
@@ -36,10 +44,6 @@
python2 setup.py install --root="$pkgdir"/ --optimize=1
- sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- $(find "${pkgdir}" -name '*.py')
-
install -D "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list