summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-20 11:45:10 +0200
committerErich Eckner <git@eckner.net>2017-09-20 11:45:10 +0200
commitc0a1033ef093daa270ec480effee6b709b3e8ab9 (patch)
treeec501721e9af8ff68ddea3108136a0815e70b8da
parent79b2d9d8db3bad8a603e992d6a074b1b2a9ce452 (diff)
downloadarchlinuxewe-c0a1033ef093daa270ec480effee6b709b3e8ab9.tar.xz
ipython-ipyparallel neu
-rw-r--r--ipython-ipyparallel/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/ipython-ipyparallel/PKGBUILD b/ipython-ipyparallel/PKGBUILD
new file mode 100644
index 000000000..602f87fb8
--- /dev/null
+++ b/ipython-ipyparallel/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgbase=ipython-ipyparallel
+pkgname=('ipython-ipyparallel' 'ipython2-ipyparallel')
+pkgver=6.0.2
+pkgrel=1
+pkgdesc="Interactive Parallel Computing in Python"
+url="https://github.com/ipython/ipyparallel"
+arch=(any)
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/ipython/ipyparallel/archive/${pkgver}.tar.gz")
+sha512sums=('ed1b9211112cdfde7b6d3d02203929f53bf18e1ca9e9043ae41f92bfa6d49991df55c7fdef24738cb17da05dcf7dc3fd3835248be99efac42d394aa6710eaee7')
+
+prepare() {
+ cp -r "${srcdir}/ipyparallel-$pkgver" "${srcdir}/ipyparallel-$pkgver-py2"
+}
+
+build() {
+ cd "${srcdir}/ipyparallel-$pkgver"
+ python setup.py build
+
+ cd "${srcdir}/ipyparallel-$pkgver-py2"
+ python2 setup.py build
+}
+
+package_ipython-ipyparallel() {
+ depends=('ipython')
+
+ cd "${srcdir}/ipyparallel-$pkgver"
+ python setup.py install --root="${pkgdir}"
+}
+
+package_ipython2-ipyparallel() {
+ depends=('ipython2')
+
+ cd "${srcdir}/ipyparallel-$pkgver-py2"
+ python2 setup.py install --root="${pkgdir}"
+ mv "${pkgdir}"/usr/bin/ipcluster "${pkgdir}"/usr/bin/ipcluster2
+ mv "${pkgdir}"/usr/bin/ipcontroller "${pkgdir}"/usr/bin/ipcontroller2
+ mv "${pkgdir}"/usr/bin/ipengine "${pkgdir}"/usr/bin/ipengine2
+}