diff options
author | Jingbei Li | 2021-01-07 18:12:29 +0800 |
---|---|---|
committer | Jingbei Li | 2021-01-07 18:12:29 +0800 |
commit | ff4d12ae58f9ea9b26940e90c17d6ab1ddd1b150 (patch) | |
tree | 8a28fa70c5fb9173e3227daead26bda04fa89088 /PKGBUILD | |
parent | 8c282b6e6dda0b9e5e0a093673066d030243f613 (diff) | |
download | aur-python-theano-git.tar.gz |
dropped python2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 61 |
1 files changed, 9 insertions, 52 deletions
@@ -1,53 +1,28 @@ # Maintainer: Jingbei Li <i@jingbei.li> # Original author: David McInnis<davidm@eagles.ewu.edu> -pkgbase="python-theano-git" -pkgname=("python-theano-git" "python2-theano-git") +pkgname=python-theano-git _pkgname="Theano" -pkgver=1.0.2.r3.3b8a5b342 +pkgver=1.0.5.r1.eb6a4125c pkgrel=1 pkgdesc='Definition and optimized evaluation of mathematical expressions on Numpy arrays.' arch=('any') url='http://www.deeplearning.net/software/theano/' license=('BSD') -depends=('python' 'python-numpy' - 'python2' 'python2-numpy') -makedepends=('python-distribute' 'python2-distribute' 'git') -checkdepends=('python-nose' 'python-nose-parameterized' 'python2-nose' 'python2-nose-parameterized') -optdepends=('python-sympy: Recommended' - 'python-scipy: Recommended' - 'python-pycuda' - 'python-pydot-ng: Preferred over python-pydot' - 'python-pydot' - 'python-pygpu-git' - 'python-scikit-sparse' - 'python-mpi4py: minimal support for opencl' - 'python2-sympy' - 'python2-scipy' - 'python2-pycuda' - 'python2-pydot-ng' - 'python2-pydot' - 'python2-mpi4py') +depends=('python' 'python-numpy') +makedepends=('python-setuptools' 'git') +#checkdepends=('python-nose' 'python-nose-parameterized') +provides=('python-theano') +conflicts=('python-theano') source=("git+https://github.com/Theano/Theano.git") sha256sums=('SKIP') pkgver() { cd "$srcdir/${_pkgname}" - git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^rel\.//' -} - -prepare() { - cd "$srcdir/" - cp -a "${_pkgname}" "${_pkgname}-py2" + git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^rel\.//' } build() { - msg "Building Python 2" - cd "$srcdir/${_pkgname}-py2" - python2 setup.py build - - - msg "Building Python 3" cd "$srcdir/${_pkgname}" python setup.py build } @@ -58,30 +33,12 @@ build() { # many tests utilizing the GPU fail on my machine. #------------------------------------------------- #check() { -# msg "Checking Python 2" -# cd "$srcdir/${_pkgname}-py2"/build/lib/theano/ -# THEANO_FLAGS=exception_verbosity=high nosetests2 -v -d -# -# msg "Checking Python 3" + # cd "$srcdir/${_pkgname}"/build/lib/theano/ # THEANO_FLAGS=exception_verbosity=high nosetests3 -v -d #} -package_python2-theano-git() { - depends=('python2' 'python2-numpy') - provides=('python2-theano') - conflicts=('python2-theano') - cd "$srcdir/${_pkgname}-py2" - python2 setup.py install --root="$pkgdir"/ --optimize=1 - mv "${pkgdir}/usr/bin/theano-cache" "${pkgdir}/usr/bin/theano2-cache" - mv "${pkgdir}/usr/bin/theano-nose" "${pkgdir}/usr/bin/theano2-nose" - install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-theano/LICENSE.txt" -} - package_python-theano-git() { - depends=('python' 'python-numpy') - provides=('python-theano') - conflicts=('python-theano') cd "$srcdir/${_pkgname}" python setup.py install --root="$pkgdir"/ --optimize=1 install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-theano/LICENSE.txt" |