From 5fef3e7f84edeb0549824c91b9a5a0b3d0586933 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 16 Jul 2021 08:15:24 -0400 Subject: [PATCH] python3-scikit-learn: update to 0.24.2. Also fix cross compilation, enable parallel builds and fix dependencies. Fixes #31976. --- srcpkgs/python3-scikit-learn/template | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-scikit-learn/template b/srcpkgs/python3-scikit-learn/template index 28f3f814a41..d57af6eafab 100644 --- a/srcpkgs/python3-scikit-learn/template +++ b/srcpkgs/python3-scikit-learn/template @@ -1,19 +1,25 @@ # Template file for 'python3-scikit-learn' pkgname=python3-scikit-learn -version=0.23.2 +version=0.24.2 revision=1 wrksrc="scikit-learn-${version}" build_style=python3-module -hostmakedepends="python3-setuptools python3-Cython python3-scipy python3-joblib" +hostmakedepends="python3-setuptools python3-Cython python3-numpy python3-scipy" makedepends="python3-devel" -depends="python3-numpy python3-scipy python3-joblib" +depends="python3-numpy python3-scipy python3-joblib python3-threadpoolctl" short_desc="Python3 modules for machine learning and data mining" maintainer="Alessio Sergi " license="BSD-3-Clause" homepage="https://scikit-learn.org/" distfiles="https://github.com/scikit-learn/scikit-learn/archive/${version}.tar.gz" -checksum=26f56e0c5aac4811f5a90109c4eed0396ee196d8383608b9bf33129528e6fcfd -nocross="build tries to run target executable on host" +checksum=642fb016bfe4bb7539ba6bf4e6dd5a95d2d25638387040b0f5eefdb84a840297 + +export SKLEARN_BUILD_PARALLEL="${XBPS_MAKEJOBS}" + +if [ "$CROSS_BUILD" ]; then + # Without this, setup.py tries to run a target executable + export PYTHON_CROSSENV=1 +fi post_install() { vlicense COPYING