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 | |
parent | 8c282b6e6dda0b9e5e0a093673066d030243f613 (diff) | |
download | aur-python-theano-git.tar.gz |
dropped python2
-rw-r--r-- | .SRCINFO | 37 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 61 |
3 files changed, 14 insertions, 85 deletions
@@ -1,47 +1,18 @@ pkgbase = python-theano-git pkgdesc = Definition and optimized evaluation of mathematical expressions on Numpy arrays. - pkgver = 1.0.2.r3.3b8a5b342 + pkgver = 1.0.5.r1.eb6a4125c pkgrel = 1 url = http://www.deeplearning.net/software/theano/ arch = any license = BSD - checkdepends = python-nose - checkdepends = python-nose-parameterized - checkdepends = python2-nose - checkdepends = python2-nose-parameterized - makedepends = python-distribute - makedepends = python2-distribute + makedepends = python-setuptools makedepends = git depends = python depends = python-numpy - depends = python2 - depends = python2-numpy - optdepends = python-sympy: Recommended - optdepends = python-scipy: Recommended - optdepends = python-pycuda - optdepends = python-pydot-ng: Preferred over python-pydot - optdepends = python-pydot - optdepends = python-pygpu-git - optdepends = python-scikit-sparse - optdepends = python-mpi4py: minimal support for opencl - optdepends = python2-sympy - optdepends = python2-scipy - optdepends = python2-pycuda - optdepends = python2-pydot-ng - optdepends = python2-pydot - optdepends = python2-mpi4py + provides = python-theano + conflicts = python-theano source = git+https://github.com/Theano/Theano.git sha256sums = SKIP pkgname = python-theano-git - depends = python - depends = python-numpy - provides = python-theano - conflicts = python-theano - -pkgname = python2-theano-git - depends = python2 - depends = python2-numpy - provides = python2-theano - conflicts = python2-theano diff --git a/.gitignore b/.gitignore index 9e2116e85f19..5a10958177d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ */ *.pkg.* *.sw* +*.log @@ -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" |