[arch-commits] Commit in python-scikit-learn/trunk (PKGBUILD)

Andrzej Giniewicz aginiewicz at archlinux.org
Thu Mar 7 13:41:09 UTC 2019


    Date: Thursday, March 7, 2019 @ 13:41:07
  Author: aginiewicz
Revision: 438000

upgpkg: python-scikit-learn 0.20.3-1

python-scikit-learn: new upstream release, remove python2 version

Modified:
  python-scikit-learn/trunk/PKGBUILD

----------+
 PKGBUILD |   48 +++++++-----------------------------------------
 1 file changed, 7 insertions(+), 41 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-07 13:31:44 UTC (rev 437999)
+++ PKGBUILD	2019-03-07 13:41:07 UTC (rev 438000)
@@ -1,60 +1,26 @@
 # Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
 
-pkgbase=python-scikit-learn
-pkgname=('python2-scikit-learn' 'python-scikit-learn')
-pkgver=0.20.2
+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')
-makedepends=('python2-scipy' 'python-scipy' 'python2-setuptools' 'python-setuptools' 'cython' 'cython2')
+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")
-sha1sums=('20a3713661041675fd9c2d9f2a676461b996cda2')
+sha256sums=('cadeefa9a824671bdcad790a075efbaa0d5a00458c43c9b4ce7110b129df7b10')
 
-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')
-
+package() {
   cd "$srcdir"/scikit-learn-$pkgver
 
   python setup.py install --root="$pkgdir"/ --optimize=1



More information about the arch-commits mailing list