diff options
author | mdraw | 2017-05-03 20:22:01 +0200 |
---|---|---|
committer | mdraw | 2017-05-03 20:22:01 +0200 |
commit | 8adbc87fbfb72a0f298ec71822c928872695332f (patch) | |
tree | ba101a2a09e14288b89ed5c9a0f5541388342e1d /PKGBUILD | |
parent | 47c37c76728b56cb1d46698240f7bd2efbfd9015 (diff) | |
download | aur-8adbc87fbfb72a0f298ec71822c928872695332f.tar.gz |
Add Python 2 package and add numpy makedepends
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 77 |
1 files changed, 53 insertions, 24 deletions
@@ -1,32 +1,11 @@ # Maintainer: mdraw.gh@gmail.com -pkgname=('python-elektronn2-git') +pkgname=('python-elektronn2-git' 'python2-elektronn2-git') _gitname='ELEKTRONN2' pkgver=rev59 pkgrel=1 -pkgdesc='A highly configurable toolkit for training 3d/2d CNNs and general Neural Networks' +pkgdesc='A highly configurable toolkit for training 3D/2D CNNs and general Neural Networks' url='https://github.com/ELEKTRONN/ELEKTRONN2' -depends=( - 'python' - 'python-theano' - 'python-matplotlib' - 'python-h5py' - 'python-numpy' - 'python-scipy' - 'python-numba' - 'python-future' - 'python-tqdm' - 'python-colorlog' - 'python-prompt_toolkit' - 'python-jedi' - 'python-scikit-learn' - 'python-scikit-image' - 'python-seaborn' - 'python-pydotplus' - 'python-psutil' -) -makedepends=('python-setuptools') -conflicts=('python-elektronn2') license=('GPLv3') arch=('any') source=("git://github.com/ELEKTRONN/${_gitname}.git") @@ -38,7 +17,57 @@ pkgver() { #git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } -package() { +package_python-elektronn2-git() { + depends=( + 'python' + 'python-theano' + 'python-matplotlib' + 'python-h5py' + 'python-numpy' + 'python-scipy' + 'python-numba' + 'python-future' + 'python-tqdm' + 'python-colorlog' + 'python-prompt_toolkit' + 'python-jedi' + 'python-scikit-learn' + 'python-scikit-image' + 'python-seaborn' + 'python-pydotplus' + 'python-psutil' + ) + makedepends=('python-setuptools' 'python-numpy') + conflicts=('python-elektronn2') + cd "${srcdir}/${_gitname}" python setup.py install --root="${pkgdir}" --optimize=1 } + +package_python2-elektronn2-git() { + depends=( + 'python2' + 'python2-theano' + 'python2-matplotlib' + 'python2-h5py' + 'python2-numpy' + 'python2-scipy' + 'python2-numba' + 'python2-future' + 'python2-tqdm' + 'python2-colorlog' + 'python2-prompt_toolkit' + 'python2-jedi' + 'python2-scikit-learn' + 'python2-scikit-image' + 'python2-seaborn' + 'python2-pydotplus' + 'python2-psutil' + ) + makedepends=('python2-setuptools' 'python2-numpy') + conflicts=('python2-elektronn2') + + cd "${srcdir}/${_gitname}" + python2 setup.py install --root="${pkgdir}" --optimize=1 + mv "${pkgdir}/usr/bin/elektronn2-train" "${pkgdir}/usr/bin/elektronn2-train2" +} |