[arch-commits] Commit in python-scikit-learn/repos/community-x86_64 (2 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Sun Nov 19 11:44:20 UTC 2017
Date: Sunday, November 19, 2017 @ 11:44:19
Author: aginiewicz
Revision: 267445
archrelease: copy trunk to community-x86_64
Added:
python-scikit-learn/repos/community-x86_64/PKGBUILD
(from rev 267444, python-scikit-learn/trunk/PKGBUILD)
Deleted:
python-scikit-learn/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 126 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 63 insertions(+), 63 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-19 11:44:11 UTC (rev 267444)
+++ PKGBUILD 2017-11-19 11:44:19 UTC (rev 267445)
@@ -1,63 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgbase=python-scikit-learn
-pkgname=('python2-scikit-learn' 'python-scikit-learn')
-pkgver=0.19.0
-pkgrel=1
-pkgdesc="A set of python modules for machine learning and data mining"
-arch=('i686' 'x86_64')
-url="http://scikit-learn.sourceforge.net/"
-license=('BSD')
-makedepends=('python2-scipy' 'python-scipy' 'python2-setuptools' 'python-setuptools' 'cython' 'cython2')
-options=(!emptydirs)
-
-source=("https://github.com/scikit-learn/scikit-learn/archive/${pkgver}.tar.gz")
-md5sums=('ca6e6e197885572296ae97c1a0dca231')
-
-prepare() {
- cd "$srcdir"
- cp -a scikit-learn-$pkgver scikit-learn-py2-$pkgver
- cd scikit-learn-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"/scikit-learn-py2-$pkgver
- python2 setup.py build
-
- msg "Building Python3"
- cd "$srcdir"/scikit-learn-$pkgver
- python setup.py build
-}
-
-package_python2-scikit-learn() {
- depends=('python2-scipy')
- cd "$srcdir"/scikit-learn-py2-$pkgver
-
- python2 setup.py install --root="$pkgdir"/ --optimize=1
-
- install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- # See FS#49651
- install -d "$pkgdir"/usr/share/doc/$pkgname
- cp -r doc/tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
-}
-
-package_python-scikit-learn() {
- depends=('python-scipy')
- cd "$srcdir"/scikit-learn-$pkgver
-
- python setup.py install --root="$pkgdir"/ --optimize=1
-
- install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- # See FS#49651
- install -d "$pkgdir"/usr/share/doc/$pkgname
- cp -r doc/tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
-}
Copied: python-scikit-learn/repos/community-x86_64/PKGBUILD (from rev 267444, python-scikit-learn/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-11-19 11:44:19 UTC (rev 267445)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-scikit-learn
+pkgname=('python2-scikit-learn' 'python-scikit-learn')
+pkgver=0.19.1
+pkgrel=1
+pkgdesc="A set of python modules for machine learning and data mining"
+arch=('x86_64')
+url="http://scikit-learn.sourceforge.net/"
+license=('BSD')
+makedepends=('python2-scipy' 'python-scipy' 'python2-setuptools' 'python-setuptools' 'cython' 'cython2')
+options=(!emptydirs)
+
+source=("https://github.com/scikit-learn/scikit-learn/archive/${pkgver}.tar.gz")
+md5sums=('8fce5acd7d2d12c45d3381bbfa953d61')
+
+prepare() {
+ cd "$srcdir"
+ cp -a scikit-learn-$pkgver scikit-learn-py2-$pkgver
+ cd scikit-learn-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"/scikit-learn-py2-$pkgver
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/scikit-learn-$pkgver
+ python setup.py build
+}
+
+package_python2-scikit-learn() {
+ depends=('python2-scipy')
+ cd "$srcdir"/scikit-learn-py2-$pkgver
+
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+
+ install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # See FS#49651
+ install -d "$pkgdir"/usr/share/doc/$pkgname
+ cp -r doc/tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
+}
+
+package_python-scikit-learn() {
+ depends=('python-scipy')
+ cd "$srcdir"/scikit-learn-$pkgver
+
+ python setup.py install --root="$pkgdir"/ --optimize=1
+
+ install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # See FS#49651
+ install -d "$pkgdir"/usr/share/doc/$pkgname
+ cp -r doc/tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
+}
More information about the arch-commits
mailing list