From 32574cf922f412fe19aa93dd20e751795e294247 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 24 Apr 2019 20:46:06 +0200 Subject: python2-scikit-learn neu --- python2-scikit-learn/PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 python2-scikit-learn/PKGBUILD (limited to 'python2-scikit-learn/PKGBUILD') diff --git a/python2-scikit-learn/PKGBUILD b/python2-scikit-learn/PKGBUILD new file mode 100644 index 00000000..0add0e51 --- /dev/null +++ b/python2-scikit-learn/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Erich Eckner +# Contributor: Andrzej Giniewicz + +pkgname=python2-scikit-learn +pkgver=0.20.3 +pkgrel=1 +pkgdesc="A set of python modules for machine learning and data mining" +arch=('x86_64' i686 pentium4) +url="http://scikit-learn.sourceforge.net/" +license=('BSD') +makedepends=('python2-setuptools' 'cython2') +options=(!emptydirs) + +source=("https://github.com/scikit-learn/scikit-learn/archive/${pkgver}.tar.gz") +sha256sums=('cadeefa9a824671bdcad790a075efbaa0d5a00458c43c9b4ce7110b129df7b10') + +depends=('python2-scipy') +optdepends=('python2-matplotlib: for examples with plotting') + +prepare() { + cd "$srcdir/scikit-learn-$pkgver" + + find . -name '*.py' -exec \ + 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 {} + +} + +build() { + msg "Building Python2" + cd "$srcdir"/scikit-learn-$pkgver + python2 setup.py build +} + +package() { + + cd "$srcdir"/scikit-learn-$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 +} -- cgit v1.2.3-70-g09d2