[arch-commits] Commit in python-numpy/repos/extra-x86_64 (PKGBUILD PKGBUILD site.cfg)
Felix Yan
fyan at archlinux.org
Wed Oct 14 02:03:37 UTC 2015
Date: Wednesday, October 14, 2015 @ 04:03:36
Author: fyan
Revision: 249240
archrelease: copy trunk to extra-x86_64
Added:
python-numpy/repos/extra-x86_64/PKGBUILD
(from rev 249239, python-numpy/trunk/PKGBUILD)
python-numpy/repos/extra-x86_64/site.cfg
(from rev 249239, python-numpy/trunk/site.cfg)
Deleted:
python-numpy/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 168 ++++++++++++++++++++++++++++++-------------------------------
site.cfg | 4 +
2 files changed, 89 insertions(+), 83 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-10-14 02:03:15 UTC (rev 249239)
+++ PKGBUILD 2015-10-14 02:03:36 UTC (rev 249240)
@@ -1,83 +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=('python2-numpy' 'python-numpy')
-pkgver=1.10.0
-pkgrel=1
-pkgdesc="Scientific tools for Python"
-arch=('i686' 'x86_64')
-license=('custom')
-url="http://www.numpy.org/"
-makedepends=('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")
-md5sums=('c8693369638ed9bff12a0c90ef8ea7af')
-
-prepare() {
- 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 ATLAS=None
- 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')
- 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')
- optdepends=('python-nose: testsuite')
- provides=("python3-numpy=${pkgver}")
- replaces=('python3-numpy')
- conflicts=('python3-numpy')
-
- _pyver=3.5
- _pyinc=3.5m
-
- 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/extra-x86_64/PKGBUILD (from rev 249239, python-numpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-10-14 02:03:36 UTC (rev 249240)
@@ -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.10.1
+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')
+md5sums=('d2a125a52187ab234bfe444287b53660'
+ '6ac5f9dac5d4c0e25a2eba6c98bf5b3c')
+
+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' 'atlas-lapack: for improved performance of some linear algebra operations')
+
+ _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' 'atlas-lapack: for improved performance of some linear algebra operations')
+ provides=("python3-numpy=${pkgver}")
+ replaces=('python3-numpy')
+ conflicts=('python3-numpy')
+
+ _pyver=3.5
+ _pyinc=3.5m
+
+ 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/extra-x86_64/site.cfg (from rev 249239, python-numpy/trunk/site.cfg)
===================================================================
--- site.cfg (rev 0)
+++ site.cfg 2015-10-14 02:03:36 UTC (rev 249240)
@@ -0,0 +1,4 @@
+[atlas]
+atlas_libs = cblas
+libraries = cblas
+
More information about the arch-commits
mailing list