mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-numpy: update to 2.0.1.
This commit is contained in:
parent
3e02daa083
commit
9c5fb2efa8
4 changed files with 18 additions and 36 deletions
|
@ -1,11 +1,11 @@
|
||||||
--- numpy/core/src/npymath/ieee754.c.src 2020-09-20 14:53:51.998825328 +1000
|
--- numpy/_core/src/npymath/ieee754.c.src.orig 2024-07-02 11:50:48.519261116 -0400
|
||||||
+++ numpy/core/src/npymath/ieee754.c.src 2020-09-20 14:54:03.611889518 +1000
|
+++ numpy/_core/src/npymath/ieee754.c.src 2024-07-02 11:51:06.336360850 -0400
|
||||||
@@ -8,6 +8,8 @@
|
@@ -8,6 +8,8 @@
|
||||||
#include "npy_math_private.h"
|
#include "npy_math_private.h"
|
||||||
#include "numpy/utils.h"
|
#include "numpy/utils.h"
|
||||||
|
|
||||||
+#include "fenv-constants.h"
|
+#include "fenv-constants.h"
|
||||||
+
|
+
|
||||||
#ifndef HAVE_COPYSIGN
|
/*
|
||||||
double npy_copysign(double x, double y)
|
The below code is provided for compilers which do not yet provide C11 compatibility (gcc 4.5 and older)
|
||||||
{
|
*/
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
--- a/pytest.ini 2023-06-16 22:48:37.211072200 -0300
|
|
||||||
+++ b/pytest.ini 2023-06-19 22:52:00.230063231 -0300
|
|
||||||
@@ -27,3 +27,5 @@
|
|
||||||
ignore:\n\n `numpy.distutils`:DeprecationWarning
|
|
||||||
# Ignore mypy >= 0.971 DeprecationWarnings
|
|
||||||
ignore:path is deprecated\. Use files\(\) instead:DeprecationWarning:mypy
|
|
||||||
+# Ignore warning raised when importing setuptools.command.
|
|
||||||
+ ignore:pkg_resources is deprecated as an API:DeprecationWarning
|
|
|
@ -1,14 +0,0 @@
|
||||||
As with SciPy, NumPy abuses specifications of *build requirements* as a means
|
|
||||||
to control the environment under which wheels are built for distribution.
|
|
||||||
|
|
||||||
--- a/pyproject.toml
|
|
||||||
+++ b/pyproject.toml
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
build-backend = "mesonpy"
|
|
||||||
requires = [
|
|
||||||
"Cython>=0.29.34,<3.1",
|
|
||||||
- "meson-python>=0.15.0,<0.16.0",
|
|
||||||
+ "meson-python>=0.15.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
[project]
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'python3-numpy'
|
# Template file for 'python3-numpy'
|
||||||
pkgname=python3-numpy
|
pkgname=python3-numpy
|
||||||
version=1.26.4
|
version=2.0.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
build_helper="meson qemu"
|
build_helper="meson qemu"
|
||||||
|
@ -19,7 +19,7 @@ license="BSD-3-Clause"
|
||||||
homepage="https://www.numpy.org/"
|
homepage="https://www.numpy.org/"
|
||||||
changelog="https://github.com/numpy/numpy/releases"
|
changelog="https://github.com/numpy/numpy/releases"
|
||||||
distfiles="${PYPI_SITE}/n/numpy/numpy-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/n/numpy/numpy-${version}.tar.gz"
|
||||||
checksum=2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010
|
checksum=485b87235796410c3519a699cfe1faab097e509e90ebb05dcd098db2ae87e7b3
|
||||||
alternatives="numpy:f2py:/usr/bin/f2py3"
|
alternatives="numpy:f2py:/usr/bin/f2py3"
|
||||||
|
|
||||||
build_options="openblas"
|
build_options="openblas"
|
||||||
|
@ -42,14 +42,10 @@ fi
|
||||||
post_patch() {
|
post_patch() {
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
armv5tel-musl)
|
armv5tel-musl)
|
||||||
cp "${FILESDIR}/fenv-constants.h" numpy/core/src/npymath/
|
cp "${FILESDIR}/fenv-constants.h" numpy/_core/src/npymath/
|
||||||
patch -Np0 -i "${FILESDIR}/fenv-constants.patch"
|
patch -Np0 -i "${FILESDIR}/fenv-constants.patch"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_LIBC" = musl ] ; then
|
|
||||||
vsed -i 's|"backtrace",||' numpy/core/setup_common.py
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
|
@ -77,9 +73,17 @@ do_check() {
|
||||||
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
|
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
|
||||||
python3 -m installer --destdir "${testdir}" dist/numpy*.whl
|
python3 -m installer --destdir "${testdir}" dist/numpy*.whl
|
||||||
|
|
||||||
|
cd "${testdir}"
|
||||||
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
|
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
|
||||||
python3 runtests.py --no-build -- \
|
python3 <<-EOF
|
||||||
-n "${XBPS_MAKEJOBS}" ${_skip+-k "not(${_skip#or})"}
|
import numpy
|
||||||
|
numpy.test(
|
||||||
|
extra_argv=[
|
||||||
|
'-n', '${XBPS_MAKEJOBS}',
|
||||||
|
${_skip+'-k', 'not(${_skip#or})'}
|
||||||
|
],
|
||||||
|
)
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue