diff options
author | root <root@rshg054.dnsready.net> | 2013-10-27 01:06:08 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-10-27 01:06:08 -0700 |
commit | 2886140ddb1db32f36cb0b27e93888442a603a53 (patch) | |
tree | 2a85cef112f53e98d1b959951dc7004b9bc89dc9 /community/python-scipy | |
parent | 24152c3ea77087edccf017c13d44904a75799ff7 (diff) |
Sun Oct 27 01:05:45 PDT 2013
Diffstat (limited to 'community/python-scipy')
-rw-r--r-- | community/python-scipy/PKGBUILD | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/community/python-scipy/PKGBUILD b/community/python-scipy/PKGBUILD index fdd5383f2..9d6f55c92 100644 --- a/community/python-scipy/PKGBUILD +++ b/community/python-scipy/PKGBUILD @@ -6,32 +6,28 @@ # Contributor: Andrzej Giniewicz <gginiu@gmail.com> pkgname=('python-scipy' 'python2-scipy') -pkgver=0.12.1 +pkgver=0.13.0 pkgrel=1 pkgdesc="SciPy is open-source software for mathematics, science, and engineering." arch=('i686' 'x86_64') url="http://www.scipy.org/" license=('BSD') -makedepends=('gcc-fortran' 'python-numpy' 'python2-numpy') +makedepends=('gcc-fortran' 'python-numpy' 'python2-numpy' 'python-setuptools' 'python2-setuptools') checkdepends=('python-nose' 'python2-nose') -source=("http://downloads.sourceforge.net/scipy/scipy-${pkgver}.tar.gz" ) -# "http://pkgbuild.com/~jelle/0001-GEN-regenerate-C-sources-with-Cython-0.17.1.patch.xz") -md5sums=('906278290152fedfe79029371ca584a5') +source=("https://pypi.python.org/packages/source/s/scipy/scipy-${pkgver}.tar.gz") +md5sums=('ffa1e9bfd2bbdf3f17f4cf8139084098') build() { - unset LDFLAGS - unset FFLAGS - # Changing the arithmetic parameter (Thanks to Fabrizio Castellano) - sed -i "s/\#define\ UNK\ 1/\#define\ IBMPC\ 1/" \ - scipy-${pkgver}/scipy/special/cephes/mconf.h +# sed -i "s/\#define\ UNK\ 1/\#define\ IBMPC\ 1/" \ +# scipy-${pkgver}/scipy/special/cephes/mconf.h + export LDFLAGS="-Wall -shared" # 2 builds cp -r scipy-${pkgver} scipy-${pkgver}-py2 # build for python3 cd scipy-${pkgver} -#patch -Np1 -i $srcdir/0001-GEN-regenerate-C-sources-with-Cython-0.17.1.patch python3 setup.py config_fc --fcompiler=gnu95 build # build for python2 @@ -48,7 +44,8 @@ build() { check() { cd scipy-${pkgver} # figure out how to run tests in the source tree easily -#python -c "from scipy import test; test('full')" +# python -c "from scipy import test; test('full')" +# python setup.py test cd ../scipy-${pkgver}-py2 # figure out how to run tests in the source tree easily @@ -60,6 +57,7 @@ package_python-scipy() { provides=('python3-scipy' 'scipy') cd scipy-${pkgver} + export LDFLAGS="-Wall -shared" python3 setup.py config_fc --fcompiler=gnu95 install \ --prefix=/usr --root=${pkgdir} --optimize=1 @@ -73,6 +71,7 @@ package_python2-scipy() { conflicts=('python-scipy<0.9.0') cd scipy-${pkgver}-py2 + export LDFLAGS="-Wall -shared" python2 setup.py config_fc --fcompiler=gnu95 install \ --prefix=/usr --root=${pkgdir} --optimize=1 |