[arch-commits] Commit in python-pandas/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Sep 4 08:45:12 UTC 2014
Date: Thursday, September 4, 2014 @ 10:45:12
Author: aginiewicz
Revision: 118251
upgpkg: python-pandas 0.14.1-4
python-pandas: fix mtime
Modified:
python-pandas/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-04 08:42:40 UTC (rev 118250)
+++ PKGBUILD 2014-09-04 08:45:12 UTC (rev 118251)
@@ -5,7 +5,7 @@
pkgbase=python-pandas
pkgname=('python2-pandas' 'python-pandas')
pkgver=0.14.1
-pkgrel=3
+pkgrel=4
pkgdesc="Cross-section and time series data analysis toolkit"
arch=('i686' 'x86_64')
url="http://pandas.pydata.org/"
@@ -15,10 +15,18 @@
source=("https://pypi.python.org/packages/source/p/pandas/pandas-${pkgver}.tar.gz")
md5sums=('393dd8f35411e4022177aa64b2da46f4')
-build() {
+prepare() {
cd "$srcdir"
cp -a pandas-${pkgver} pandas-py2-${pkgver}
+ cd pandas-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"/pandas-py2-${pkgver}
python2 setup.py build_ext --inplace
@@ -57,9 +65,6 @@
python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
- sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find "${pkgdir}" -name '*.py')
- sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" $(find "${pkgdir}" -name '*.py')
-
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list