mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-16 20:13:52 +02:00
python3-numpy: rebuild for Python 3.12
This commit is contained in:
parent
fa2d44d2d4
commit
0eaf65a0d0
1 changed files with 9 additions and 26 deletions
|
@ -1,9 +1,14 @@
|
||||||
# Template file for 'python3-numpy'
|
# Template file for 'python3-numpy'
|
||||||
pkgname=python3-numpy
|
pkgname=python3-numpy
|
||||||
version=1.26.0
|
version=1.26.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python3-module
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-setuptools python3-Cython gcc-fortran"
|
build_helper="meson qemu"
|
||||||
|
make_build_args="-Csetup-args=-Ddisable-svml=true
|
||||||
|
$(vopt_if openblas "" "-Csetup-args=-Dblas=blas -Csetup-args=-Dlapack=lapack")
|
||||||
|
"
|
||||||
|
hostmakedepends="python3-meson-python python3-pyproject-metadata
|
||||||
|
python3-setuptools pkg-config python3-Cython gcc-fortran"
|
||||||
makedepends="python3-devel
|
makedepends="python3-devel
|
||||||
$(vopt_if openblas 'openblas-devel' 'lapack-devel cblas-devel')"
|
$(vopt_if openblas 'openblas-devel' 'lapack-devel cblas-devel')"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
|
@ -34,9 +39,6 @@ if [ "$build_option_openblas" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# SVML AVX-512 functions have very limited support; disble for now
|
|
||||||
export NPY_DISABLE_SVML=1
|
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
armv5tel-musl)
|
armv5tel-musl)
|
||||||
|
@ -50,23 +52,6 @@ post_patch() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
# Build numpy in parallel
|
|
||||||
make_build_args+=" ${makejobs}"
|
|
||||||
|
|
||||||
# Find the right linear algebra subroutines on the target arch
|
|
||||||
: > site.cfg
|
|
||||||
for _blaslib in $(vopt_if openblas openblas "lapack blas"); do
|
|
||||||
cat >> site.cfg <<-EOF
|
|
||||||
[$_blaslib]
|
|
||||||
libraries = ${_blaslib}
|
|
||||||
include_dirs = ${XBPS_CROSS_BASE}/usr/include
|
|
||||||
library_dirs = ${XBPS_CROSS_BASE}/usr/lib
|
|
||||||
runtime_library_dirs = ${XBPS_CROSS_BASE}/usr/lib
|
|
||||||
EOF
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
local testjobs="-n $XBPS_MAKEJOBS"
|
local testjobs="-n $XBPS_MAKEJOBS"
|
||||||
local _skip
|
local _skip
|
||||||
|
@ -93,8 +78,6 @@ do_check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm ${DESTDIR}/usr/bin/f2py
|
mv ${DESTDIR}/usr/bin/f2py{,3}
|
||||||
|
|
||||||
rm ${DESTDIR}/${py3_sitelib}/numpy/LICENSE.txt
|
|
||||||
vlicense LICENSE.txt LICENSE
|
vlicense LICENSE.txt LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue