blob: 5932fea8ff43c0037369fcd566383c87724ec2eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Hector <hsearaDOTatDOTgmailDOTcom>
pkgbase=python-algopy
pkgname=('python2-algopy' 'python-algopy')
pkgver=0.5.3
pkgrel=1
pkgdesc='A tool for Algorithmic Differentiation (AD) and Taylor polynomial approximations.'
url='http://packages.python.org/algopy/'
license=("BSD")
arch=('any')
depends=()
makedepends=('python2-setuptools' 'python-setuptools')
options=('!libtool')
source=("https://pypi.python.org/packages/source/a/algopy/algopy-${pkgver}.zip")
sha1sums=('4ebb09d8cf1b11c69d02c4d6c8806462831037d4')
prepare() {
cd "$srcdir"
cp -a algopy-${pkgver} algopy-py2-${pkgver}
}
build() {
msg2 "Building algopy - Python2"
cd "${srcdir}/algopy-py2-${pkgver}"
python2 setup.py build
msg2 "Building algopy - Python3"
cd "${srcdir}/algopy-${pkgver}"
python setup.py build
}
package_python-algopy() {
depends=('python-numpydoc')
optdepends=()
msg2 "Installing algopy python3"
cd "${srcdir}/algopy-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
# Remove left over directories from distribute utils.
find ${pkgdir} -type d -name "__pycache__" -exec rm -r {} \; -prune
}
package_python2-algopy() {
# depends=('python2-numpydoc')
optdepends=()
msg2 "Installing algopy python2"
cd "${srcdir}/algopy-py2-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
# Remove left over directories from distribute utils.
find ${pkgdir} -type d -name "__pycache__" -exec rm -r {} \; -prune
}
|