[arch-commits] Commit in python-statsmodels/repos (4 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sun Sep 20 07:25:55 UTC 2015


    Date: Sunday, September 20, 2015 @ 09:25:55
  Author: aginiewicz
Revision: 141196

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-statsmodels/repos/community-staging-i686/
  python-statsmodels/repos/community-staging-i686/PKGBUILD
    (from rev 141195, python-statsmodels/trunk/PKGBUILD)
  python-statsmodels/repos/community-staging-x86_64/
  python-statsmodels/repos/community-staging-x86_64/PKGBUILD
    (from rev 141195, python-statsmodels/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   62 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   62 ++++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

Copied: python-statsmodels/repos/community-staging-i686/PKGBUILD (from rev 141195, python-statsmodels/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-20 07:25:55 UTC (rev 141196)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+
+pkgbase=python-statsmodels
+pkgname=('python2-statsmodels' 'python-statsmodels')
+pkgver=0.6.1
+pkgrel=3
+pkgdesc="Statistical computations and models for use with SciPy"
+arch=('i686' 'x86_64')
+url="http://statsmodels.sourceforge.net/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python2-scipy' 'python2-pandas' 'python2-patsy'
+             'python-setuptools' 'python-scipy' 'python-pandas' 'python-patsy')
+source=("https://pypi.python.org/packages/source/s/statsmodels/statsmodels-${pkgver}.tar.gz")
+md5sums=('f7580ebf7d2a2c9b87abfad190dcb9a3')
+
+prepare() {
+  cd "$srcdir"
+  cp -a statsmodels-${pkgver} statsmodels-py2-${pkgver}
+  cd statsmodels-py2-${pkgver}
+
+  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+      -i $(find . -name '*.py')
+}
+
+build() {
+  msg "Building Python2"
+  cd "$srcdir"/statsmodels-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/statsmodels-${pkgver}
+  python setup.py build
+}
+
+package_python2-statsmodels() {
+  depends=('python2-scipy' 'python2-pandas' 'python2-patsy')
+  optdepends=('python2-nose: needed for integrated test suite'
+              'python2-matplotlib: needed for plotting functions')
+
+  cd "$srcdir"/statsmodels-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-statsmodels() {
+  depends=('python-scipy' 'python-pandas' 'python-patsy')
+  optdepends=('python-nose: needed for integrated test suite'
+              'python-matplotlib: needed for plotting functions')
+
+  cd "$srcdir"/statsmodels-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+

Copied: python-statsmodels/repos/community-staging-x86_64/PKGBUILD (from rev 141195, python-statsmodels/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-20 07:25:55 UTC (rev 141196)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+
+pkgbase=python-statsmodels
+pkgname=('python2-statsmodels' 'python-statsmodels')
+pkgver=0.6.1
+pkgrel=3
+pkgdesc="Statistical computations and models for use with SciPy"
+arch=('i686' 'x86_64')
+url="http://statsmodels.sourceforge.net/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python2-scipy' 'python2-pandas' 'python2-patsy'
+             'python-setuptools' 'python-scipy' 'python-pandas' 'python-patsy')
+source=("https://pypi.python.org/packages/source/s/statsmodels/statsmodels-${pkgver}.tar.gz")
+md5sums=('f7580ebf7d2a2c9b87abfad190dcb9a3')
+
+prepare() {
+  cd "$srcdir"
+  cp -a statsmodels-${pkgver} statsmodels-py2-${pkgver}
+  cd statsmodels-py2-${pkgver}
+
+  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+      -i $(find . -name '*.py')
+}
+
+build() {
+  msg "Building Python2"
+  cd "$srcdir"/statsmodels-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/statsmodels-${pkgver}
+  python setup.py build
+}
+
+package_python2-statsmodels() {
+  depends=('python2-scipy' 'python2-pandas' 'python2-patsy')
+  optdepends=('python2-nose: needed for integrated test suite'
+              'python2-matplotlib: needed for plotting functions')
+
+  cd "$srcdir"/statsmodels-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-statsmodels() {
+  depends=('python-scipy' 'python-pandas' 'python-patsy')
+  optdepends=('python-nose: needed for integrated test suite'
+              'python-matplotlib: needed for plotting functions')
+
+  cd "$srcdir"/statsmodels-${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