From 05c4b5e7cd593e63c421d3f3360d5e9308710a9a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 11 Apr 2022 09:50:49 +0300 Subject: python-pymc: Adopted --- python-pymc/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 python-pymc/PKGBUILD (limited to 'python-pymc/PKGBUILD') 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 @@ +# Contributor: xia0er +pkgname=python-pymc +pkgver=2.3.8 +pkgrel=1 +pkgdesc="Markov chain Monte Carlo for Python" +arch=('i686' 'x86_64') +url="https://github.com/pymc-devs/pymc" +license=('MIT') +source=("https://github.com/pymc-devs/pymc/archive/v${pkgver}.tar.gz") +makedepends=("gcc-fortran") +sha256sums=('200a28469d574a370fa9b55cd92f112f8ad09f71674bdae514437039e953689b') + +package_python2_pymc() { + depends=('python2-numpy') + optdepends=('python2-scipy' 'python2-matplotlib' 'python2-pytables' 'ipython2' 'pydot' 'python2-nose') + + cd $srcdir/pymc-$pkgver + export LDFLAGS="$LDFLAGS -shared" + python2 setup.py config_fc --fcompiler=gnu95 build + python2 setup.py install --prefix=/usr --root=$pkgdir || return 1 +} + +package() { + depends=('python-numpy') + optdepends=('python-scipy' 'python-matplotlib' 'python-pytables' 'ipython' 'pydot' 'python-nose') + + cd $srcdir/pymc-$pkgver + export LDFLAGS="$LDFLAGS -shared" + python setup.py config_fc --fcompiler=gnu95 build + python setup.py install --prefix=/usr --root=$pkgdir || return 1 +} + + -- cgit v1.2.3-70-g09d2