[arch-commits] Commit in python-patsy/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 17:48:19 UTC 2015


    Date: Saturday, September 19, 2015 @ 19:48:19
  Author: foutrelis
Revision: 141074

archrelease: copy trunk to community-staging-any

Added:
  python-patsy/repos/community-staging-any/
  python-patsy/repos/community-staging-any/PKGBUILD
    (from rev 141073, python-patsy/trunk/PKGBUILD)

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Copied: python-patsy/repos/community-staging-any/PKGBUILD (from rev 141073, python-patsy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 17:48:19 UTC (rev 141074)
@@ -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.4.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://pypi.python.org/packages/source/p/patsy/patsy-${pkgver}.zip")
+md5sums=('9043a0d0695eaf5ec021676ccb0eb95d')
+
+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