[arch-commits] Commit in python-patsy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 16:53:27 UTC 2018
Date: Saturday, June 30, 2018 @ 16:53:26
Author: felixonmars
Revision: 348586
archrelease: copy trunk to community-staging-any
Added:
python-patsy/repos/community-staging-any/
python-patsy/repos/community-staging-any/PKGBUILD
(from rev 348584, python-patsy/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-patsy/repos/community-staging-any/PKGBUILD (from rev 348584, python-patsy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 16:53:26 UTC (rev 348586)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+# Contributor: Nick Ward <ward.nickjames at gmail.com>
+# Contributor: Rich Lindsley <rich at dranek dot com>
+
+pkgbase=python-patsy
+pkgname=('python2-patsy' 'python-patsy')
+pkgver=0.5.0
+pkgrel=2
+pkgdesc="A Python package for describing statistical models and for building design matrices"
+arch=('any')
+url="https://github.com/pydata/patsy"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools' 'python2-numpy' 'python-numpy' 'unzip')
+source=("https://github.com/pydata/patsy/archive/v${pkgver}.tar.gz")
+md5sums=('f17a639e9673df2d02489f03bbe3ab7c')
+
+build() {
+ cd "$srcdir"
+ cp -a patsy-${pkgver} patsy-py2-${pkgver}
+
+ msg "Building Python2"
+ cd "$srcdir"/patsy-py2-${pkgver}
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/patsy-${pkgver}
+ python setup.py build
+}
+
+package_python2-patsy() {
+ depends=('python2-numpy')
+ optdepends=('python2-nose: needed for integrated test suite'
+ 'python2-scipy: needed for spline-related functions')
+
+ cd "$srcdir"/patsy-py2-${pkgver}
+
+ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-patsy() {
+ depends=('python-numpy')
+ optdepends=('python-nose: needed for integrated test suite'
+ 'python-scipy: needed for spline-related functions')
+
+ cd "$srcdir"/patsy-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
More information about the arch-commits
mailing list