[arch-commits] Commit in python-scikit-learn/repos/community-x86_64 (2 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Mar 7 13:41:18 UTC 2019
Date: Thursday, March 7, 2019 @ 13:41:17
Author: aginiewicz
Revision: 438001
archrelease: copy trunk to community-x86_64
Added:
python-scikit-learn/repos/community-x86_64/PKGBUILD
(from rev 438000, python-scikit-learn/trunk/PKGBUILD)
Deleted:
python-scikit-learn/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 100 ++++++++++++++++++++-----------------------------------------
1 file changed, 33 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-07 13:41:07 UTC (rev 438000)
+++ PKGBUILD 2019-03-07 13:41:17 UTC (rev 438001)
@@ -1,67 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgbase=python-scikit-learn
-pkgname=('python2-scikit-learn' 'python-scikit-learn')
-pkgver=0.20.2
-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")
-sha1sums=('20a3713661041675fd9c2d9f2a676461b996cda2')
-
-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')
- optdepends=('python2-matplotlib: for examples with plotting')
-
- 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')
- optdepends=('python-matplotlib: for examples with plotting')
-
- 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 438000, python-scikit-learn/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-03-07 13:41:17 UTC (rev 438001)
@@ -0,0 +1,33 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname='python-scikit-learn'
+pkgver=0.20.3
+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')
+depends=('python-scipy')
+optdepends=('python-matplotlib: for examples with plotting')
+makedepends=('python-setuptools' 'cython')
+options=(!emptydirs)
+
+source=("https://github.com/scikit-learn/scikit-learn/archive/${pkgver}.tar.gz")
+sha256sums=('cadeefa9a824671bdcad790a075efbaa0d5a00458c43c9b4ce7110b129df7b10')
+
+build() {
+ cd "$srcdir"/scikit-learn-$pkgver
+ python setup.py build
+}
+
+package() {
+ 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