python-scikit-learn: update to 1.7.1
This commit is contained in:
parent
1d36be604d
commit
8474c3c9cc
@ -3,8 +3,8 @@
|
||||
_realname=scikit-learn
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=1.7.0
|
||||
pkgrel=2
|
||||
pkgver=1.7.1
|
||||
pkgrel=1
|
||||
pkgdesc="A set of python modules for machine learning and data mining (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
@ -32,7 +32,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-cc")
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz"
|
||||
001-remove-extra-flags.patch)
|
||||
sha256sums=('c01e869b15aec88e2cdb73d27f15bdbe03bce8e2fb43afbe77c45d399e73a5a3'
|
||||
sha256sums=('24b3f1e976a4665aa74ee0fcaac2b8fccc6ae77c8e07ab25da3ba6d3292b9802'
|
||||
'95f33e2b5c1145b0bf5689904af0ab5bd7953c650266691c9b32c2cd09e8589c')
|
||||
|
||||
apply_patch_with_msg() {
|
||||
@ -44,19 +44,19 @@ apply_patch_with_msg() {
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd ${_realname/-/_}-${pkgver}
|
||||
cd "${_realname/-/_}-${pkgver}"
|
||||
apply_patch_with_msg \
|
||||
001-remove-extra-flags.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cp -r "${_realname/-/_}-${pkgver}" "${MSYSTEM}" && cd "${MSYSTEM}"
|
||||
cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation \
|
||||
-Csetup-args="-Dbuildtype=release"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${MSYSTEM}"
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user