[arch-commits] Commit in python-scikit-learn/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Tue Sep 6 13:17:02 UTC 2022
Date: Tuesday, September 6, 2022 @ 13:17:02
Author: alerque
Revision: 1294437
upgpkg: python-scikit-learn 1.1.2-1
Modified:
python-scikit-learn/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 12:36:20 UTC (rev 1294436)
+++ PKGBUILD 2022-09-06 13:17:02 UTC (rev 1294437)
@@ -3,28 +3,36 @@
# Maintainer: Bruno Pagani <archange at archlinux.org>
pkgname=python-scikit-learn
-pkgver=1.1.1
+pkgver=1.1.2
pkgrel=1
pkgdesc="A set of python modules for machine learning and data mining"
arch=(x86_64)
url="https://scikit-learn.org"
license=(BSD)
-depends=(python-scipy python-joblib python-threadpoolctl)
+depends=(python-scipy python-joblib python-numpy python-threadpoolctl)
optdepends=('python-matplotlib: plotting capabilities')
-makedepends=(python-setuptools cython openmp)
+makedepends=(cython
+ openmp
+ python-{build,installer,wheel}
+ python-setuptools)
options=(!emptydirs)
_archive=${pkgname#python-}-${pkgver}
source=(https://github.com/scikit-learn/scikit-learn/archive/${pkgver}/$_archive.tar.gz)
-sha256sums=('568e621b9e1479b9ab952a9241db5af2ba3ab4f69d44b8aba3dd7648825e8e5a')
+sha256sums=('92f3ad28149996caa9fd6ff5f849e7312d9fdedabe73760309a0e8b35b161735')
+prepare() {
+ cd $_archive
+ sed -i -E '/setuptools/s/<[0-9.]+//;/numpy/d' pyproject.toml
+}
+
build() {
cd $_archive
- python setup.py build
+ python -m build -wn
}
package() {
cd $_archive
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname}/ COPYING
# See FS#49651
More information about the arch-commits
mailing list