[arch-commits] Commit in python-numpy/repos/staging-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jul 24 09:58:46 UTC 2018
Date: Tuesday, July 24, 2018 @ 09:58:45
Author: felixonmars
Revision: 329509
archrelease: copy trunk to staging-x86_64
Added:
python-numpy/repos/staging-x86_64/PKGBUILD
(from rev 329508, python-numpy/trunk/PKGBUILD)
Deleted:
python-numpy/repos/staging-x86_64/PKGBUILD
----------+
PKGBUILD | 156 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 80 insertions(+), 76 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-24 09:58:29 UTC (rev 329508)
+++ PKGBUILD 2018-07-24 09:58:45 UTC (rev 329509)
@@ -1,76 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-
-pkgbase=python-numpy
-pkgname=('python-numpy' 'python2-numpy')
-pkgver=1.15.0
-pkgrel=1
-pkgdesc="Scientific tools for Python"
-arch=('x86_64')
-license=('custom')
-url="http://www.numpy.org/"
-makedepends=('cblas' 'lapack' 'python' 'python2' 'python-setuptools' 'python2-setuptools' 'gcc-fortran'
- 'python-nose' 'python2-nose' 'cython' 'cython2')
-checkdepends=('python-pytest' 'python2-pytest')
-options=('staticlibs')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz")
-sha512sums=('1ee1c6cdf4ae287f1a0e7c49533c143c5842817cd92681cf72507f32904866de2e1fdca648f09fdca9fae391c78cebdd9a32a7116ff10ca3887f6f5ab18763b2')
-
-prepare() {
- cp -a numpy-$pkgver{,-py2}
- cd numpy-$pkgver-py2
-
- 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() {
- cd "$srcdir"/numpy-$pkgver
- python setup.py build
-
- cd "$srcdir"/numpy-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- # TODO: Fix fortran tests here (it works fine after installation)
-
- cd "$srcdir"/numpy-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- cd "$PWD/tmp_install"
- PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.7/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()'
-
- cd "$srcdir"/numpy-$pkgver-py2
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- cd "$PWD/tmp_install"
- PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 -c 'import numpy; numpy.test()'
-}
-
-package_python-numpy() {
- depends=('cblas' 'lapack' 'python')
- optdepends=('python-nose: testsuite'
- 'openblas: faster linear algebra')
-
- cd numpy-$pkgver
- python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
-
- install -m755 -d "${pkgdir}/usr/share/licenses/python-numpy"
- install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-numpy/"
-}
-
-package_python2-numpy() {
- depends=('cblas' 'lapack' 'python2')
- optdepends=('python2-nose: testsuite'
- 'openblas: faster linear algebra')
-
- cd numpy-$pkgver-py2
- python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-
- install -m755 -d "${pkgdir}/usr/share/licenses/python2-numpy"
- install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-numpy/"
-}
Copied: python-numpy/repos/staging-x86_64/PKGBUILD (from rev 329508, python-numpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-07-24 09:58:45 UTC (rev 329509)
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+
+pkgbase=python-numpy
+pkgname=('python-numpy' 'python2-numpy')
+pkgver=1.15.0
+pkgrel=2
+pkgdesc="Scientific tools for Python"
+arch=('x86_64')
+license=('custom')
+url="http://www.numpy.org/"
+makedepends=('cblas' 'lapack' 'python' 'python2' 'python-setuptools' 'python2-setuptools' 'gcc-fortran'
+ 'python-nose' 'python2-nose' 'cython' 'cython2')
+checkdepends=('python-pytest' 'python2-pytest')
+options=('staticlibs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz")
+sha512sums=('1ee1c6cdf4ae287f1a0e7c49533c143c5842817cd92681cf72507f32904866de2e1fdca648f09fdca9fae391c78cebdd9a32a7116ff10ca3887f6f5ab18763b2')
+
+prepare() {
+ cp -a numpy-$pkgver{,-py2}
+ cd numpy-$pkgver-py2
+
+ 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() {
+ cd "$srcdir"/numpy-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/numpy-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ # TODO: Fix fortran tests here (it works fine after installation)
+
+ cd "$srcdir"/numpy-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ cd "$PWD/tmp_install"
+ PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.7/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()'
+
+ cd "$srcdir"/numpy-$pkgver-py2
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ cd "$PWD/tmp_install"
+ PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 -c 'import numpy; numpy.test()'
+}
+
+package_python-numpy() {
+ depends=('cblas' 'lapack' 'python')
+ optdepends=('python-nose: testsuite'
+ 'openblas: faster linear algebra')
+
+ cd numpy-$pkgver
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/python-numpy"
+ install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-numpy/"
+}
+
+package_python2-numpy() {
+ depends=('cblas' 'lapack' 'python2')
+ optdepends=('python2-nose: testsuite'
+ 'openblas: faster linear algebra')
+
+ cd numpy-$pkgver-py2
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/python2-numpy"
+ install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-numpy/"
+
+ for _exe in conv-template f2py from-template; do
+ mv "$pkgdir"/usr/bin/"$_exe"{,2}
+ done
+}
More information about the arch-commits
mailing list