diff options
author | Yigit Sever | 2022-04-11 09:50:49 +0300 |
---|---|---|
committer | Yigit Sever | 2022-04-11 09:50:49 +0300 |
commit | 05c4b5e7cd593e63c421d3f3360d5e9308710a9a (patch) | |
tree | 10a73d09d439296f6efc65ae73f22b4812c18cd9 /python-pymc/PKGBUILD | |
parent | aac996304c6727f881806b368a40b93cba31af3e (diff) | |
download | packages-05c4b5e7cd593e63c421d3f3360d5e9308710a9a.tar.gz packages-05c4b5e7cd593e63c421d3f3360d5e9308710a9a.tar.bz2 packages-05c4b5e7cd593e63c421d3f3360d5e9308710a9a.zip |
python-pymc: Adopted
Diffstat (limited to 'python-pymc/PKGBUILD')
-rw-r--r-- | python-pymc/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/python-pymc/PKGBUILD b/python-pymc/PKGBUILD new file mode 100644 index 0000000..23dfb80 --- /dev/null +++ b/python-pymc/PKGBUILD | |||
@@ -0,0 +1,33 @@ | |||
1 | # Contributor: xia0er <xia0er@gmail.com> | ||
2 | pkgname=python-pymc | ||
3 | pkgver=2.3.8 | ||
4 | pkgrel=1 | ||
5 | pkgdesc="Markov chain Monte Carlo for Python" | ||
6 | arch=('i686' 'x86_64') | ||
7 | url="https://github.com/pymc-devs/pymc" | ||
8 | license=('MIT') | ||
9 | source=("https://github.com/pymc-devs/pymc/archive/v${pkgver}.tar.gz") | ||
10 | makedepends=("gcc-fortran") | ||
11 | sha256sums=('200a28469d574a370fa9b55cd92f112f8ad09f71674bdae514437039e953689b') | ||
12 | |||
13 | package_python2_pymc() { | ||
14 | depends=('python2-numpy') | ||
15 | optdepends=('python2-scipy' 'python2-matplotlib' 'python2-pytables' 'ipython2' 'pydot' 'python2-nose') | ||
16 | |||
17 | cd $srcdir/pymc-$pkgver | ||
18 | export LDFLAGS="$LDFLAGS -shared" | ||
19 | python2 setup.py config_fc --fcompiler=gnu95 build | ||
20 | python2 setup.py install --prefix=/usr --root=$pkgdir || return 1 | ||
21 | } | ||
22 | |||
23 | package() { | ||
24 | depends=('python-numpy') | ||
25 | optdepends=('python-scipy' 'python-matplotlib' 'python-pytables' 'ipython' 'pydot' 'python-nose') | ||
26 | |||
27 | cd $srcdir/pymc-$pkgver | ||
28 | export LDFLAGS="$LDFLAGS -shared" | ||
29 | python setup.py config_fc --fcompiler=gnu95 build | ||
30 | python setup.py install --prefix=/usr --root=$pkgdir || return 1 | ||
31 | } | ||
32 | |||
33 | |||