[arch-commits] Commit in python-numpy/repos (6 files)
Felix Yan
felixonmars at archlinux.org
Thu Sep 28 17:31:55 UTC 2017
Date: Thursday, September 28, 2017 @ 17:31:54
Author: felixonmars
Revision: 306448
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
python-numpy/repos/testing-i686/
python-numpy/repos/testing-i686/PKGBUILD
(from rev 306447, python-numpy/trunk/PKGBUILD)
python-numpy/repos/testing-i686/site.cfg
(from rev 306447, python-numpy/trunk/site.cfg)
python-numpy/repos/testing-x86_64/
python-numpy/repos/testing-x86_64/PKGBUILD
(from rev 306447, python-numpy/trunk/PKGBUILD)
python-numpy/repos/testing-x86_64/site.cfg
(from rev 306447, python-numpy/trunk/site.cfg)
-------------------------+
testing-i686/PKGBUILD | 85 ++++++++++++++++++++++++++++++++++++++++++++++
testing-i686/site.cfg | 4 ++
testing-x86_64/PKGBUILD | 85 ++++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/site.cfg | 4 ++
4 files changed, 178 insertions(+)
Copied: python-numpy/repos/testing-i686/PKGBUILD (from rev 306447, python-numpy/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2017-09-28 17:31:54 UTC (rev 306448)
@@ -0,0 +1,85 @@
+# $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=('python2-numpy' 'python-numpy')
+pkgver=1.13.2
+pkgrel=1
+pkgdesc="Scientific tools for Python"
+arch=('i686' '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')
+options=('staticlibs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz" 'site.cfg')
+sha512sums=('68cebb6116969a1a59a3cb9a80e2b5a7cb39e67fd5b6aacec3d3b8f1ed28468a8efb93808c6854e0477506eab8c2c6ecca34592e39a1bb865e9809ec1281e430'
+ '03a0f161be4963625f110a26167efbd300a12bd4cf99c8250c47ac865466d03fc8640e7e4fb6a59c39bf8b797609f5ed50afbc720d1fcbd2c4c57263cf8b406b')
+
+prepare() {
+ cp site.cfg numpy-$pkgver
+ cp -a numpy-$pkgver numpy-py2-$pkgver
+ cd numpy-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() {
+ export LDFLAGS="$LDFLAGS -shared"
+
+ echo "Building Python2"
+ cd numpy-py2-$pkgver
+ python2 setup.py config_fc --fcompiler=gnu95 build
+
+ echo "Building Python3"
+ cd ../numpy-$pkgver
+ python setup.py config_fc --fcompiler=gnu95 build
+}
+
+package_python2-numpy() {
+ depends=('lapack' 'python2' 'cblas')
+ optdepends=('python2-nose: testsuite')
+
+ _pyver=2.7
+
+ export ATLAS=None
+ export LDFLAGS="$LDFLAGS -shared"
+
+ cd numpy-py2-$pkgver
+ python2 setup.py config_fc --fcompiler=gnu95 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/"
+
+ install -m755 -d "${pkgdir}/usr/include/python${_pyver}"
+ ln -sf /usr/lib/python${_pyver}/site-packages/numpy/core/include/numpy "${pkgdir}/usr/include/python${_pyver}/numpy"
+}
+
+package_python-numpy() {
+ depends=('lapack' 'python' 'cblas')
+ optdepends=('python-nose: testsuite')
+ provides=("python3-numpy=${pkgver}")
+ replaces=('python3-numpy')
+ conflicts=('python3-numpy')
+
+ _pyver=3.6
+ _pyinc=3.6m
+
+ export ATLAS=None
+ export LDFLAGS="$LDFLAGS -shared"
+
+ cd numpy-$pkgver
+ python setup.py config_fc --fcompiler=gnu95 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/"
+
+ install -m755 -d "${pkgdir}/usr/include/python${_pyinc}"
+ ln -sf /usr/lib/python${_pyver}/site-packages/numpy/core/include/numpy "${pkgdir}/usr/include/python${_pyinc}/numpy"
+}
Copied: python-numpy/repos/testing-i686/site.cfg (from rev 306447, python-numpy/trunk/site.cfg)
===================================================================
--- testing-i686/site.cfg (rev 0)
+++ testing-i686/site.cfg 2017-09-28 17:31:54 UTC (rev 306448)
@@ -0,0 +1,4 @@
+[atlas]
+atlas_libs = cblas
+libraries = cblas
+
Copied: python-numpy/repos/testing-x86_64/PKGBUILD (from rev 306447, python-numpy/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2017-09-28 17:31:54 UTC (rev 306448)
@@ -0,0 +1,85 @@
+# $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=('python2-numpy' 'python-numpy')
+pkgver=1.13.2
+pkgrel=1
+pkgdesc="Scientific tools for Python"
+arch=('i686' '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')
+options=('staticlibs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz" 'site.cfg')
+sha512sums=('68cebb6116969a1a59a3cb9a80e2b5a7cb39e67fd5b6aacec3d3b8f1ed28468a8efb93808c6854e0477506eab8c2c6ecca34592e39a1bb865e9809ec1281e430'
+ '03a0f161be4963625f110a26167efbd300a12bd4cf99c8250c47ac865466d03fc8640e7e4fb6a59c39bf8b797609f5ed50afbc720d1fcbd2c4c57263cf8b406b')
+
+prepare() {
+ cp site.cfg numpy-$pkgver
+ cp -a numpy-$pkgver numpy-py2-$pkgver
+ cd numpy-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() {
+ export LDFLAGS="$LDFLAGS -shared"
+
+ echo "Building Python2"
+ cd numpy-py2-$pkgver
+ python2 setup.py config_fc --fcompiler=gnu95 build
+
+ echo "Building Python3"
+ cd ../numpy-$pkgver
+ python setup.py config_fc --fcompiler=gnu95 build
+}
+
+package_python2-numpy() {
+ depends=('lapack' 'python2' 'cblas')
+ optdepends=('python2-nose: testsuite')
+
+ _pyver=2.7
+
+ export ATLAS=None
+ export LDFLAGS="$LDFLAGS -shared"
+
+ cd numpy-py2-$pkgver
+ python2 setup.py config_fc --fcompiler=gnu95 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/"
+
+ install -m755 -d "${pkgdir}/usr/include/python${_pyver}"
+ ln -sf /usr/lib/python${_pyver}/site-packages/numpy/core/include/numpy "${pkgdir}/usr/include/python${_pyver}/numpy"
+}
+
+package_python-numpy() {
+ depends=('lapack' 'python' 'cblas')
+ optdepends=('python-nose: testsuite')
+ provides=("python3-numpy=${pkgver}")
+ replaces=('python3-numpy')
+ conflicts=('python3-numpy')
+
+ _pyver=3.6
+ _pyinc=3.6m
+
+ export ATLAS=None
+ export LDFLAGS="$LDFLAGS -shared"
+
+ cd numpy-$pkgver
+ python setup.py config_fc --fcompiler=gnu95 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/"
+
+ install -m755 -d "${pkgdir}/usr/include/python${_pyinc}"
+ ln -sf /usr/lib/python${_pyver}/site-packages/numpy/core/include/numpy "${pkgdir}/usr/include/python${_pyinc}/numpy"
+}
Copied: python-numpy/repos/testing-x86_64/site.cfg (from rev 306447, python-numpy/trunk/site.cfg)
===================================================================
--- testing-x86_64/site.cfg (rev 0)
+++ testing-x86_64/site.cfg 2017-09-28 17:31:54 UTC (rev 306448)
@@ -0,0 +1,4 @@
+[atlas]
+atlas_libs = cblas
+libraries = cblas
+
More information about the arch-commits
mailing list