mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
# Contributor: Carlos Giraldo <cgiraldo@gradiant.org>
|
|
# Maintainer: Carlos Giraldo <cgiraldo@gradiant.org>
|
|
pkgname=py3-scikit-learn
|
|
pkgver=1.2.2
|
|
pkgrel=1
|
|
pkgdesc="a Python module for machine learning built on top of SciPy"
|
|
url="https://scikit-learn.org/"
|
|
arch="all !s390x" # blocked by py3-joblib
|
|
license="BSD-3-Clause"
|
|
options="!check" # no test suite
|
|
depends="
|
|
py3-joblib
|
|
py3-numpy
|
|
py3-scipy
|
|
py3-threadpoolctl
|
|
python3
|
|
"
|
|
makedepends="
|
|
cython
|
|
py3-gpep517
|
|
py3-numpy-dev
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/s/scikit-learn/scikit-learn-$pkgver.tar.gz"
|
|
builddir="$srcdir/scikit-learn-$pkgver"
|
|
|
|
case "$CARCH" in
|
|
aarch64)
|
|
export SKLEARN_NO_OPENMP=1
|
|
;;
|
|
esac
|
|
|
|
build() {
|
|
CFLAGS="$CFLAGS -O2 -flto=auto" \
|
|
CPPFLAGS="$CPPFLAGS -O2 -flto=auto" \
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
|
|
find "$pkgdir" -type d -name "tests" -exec rm -rf {} \+
|
|
}
|
|
|
|
sha512sums="
|
|
73ebcd49f49607cefbd4c2200e9379ab1b1277067d0a10c09d80e3969d4924506ef90d52ad3173cf1e05268ad4c7812218b2e955798ac123bb078ff08330309e scikit-learn-1.2.2.tar.gz
|
|
"
|