python-scipy: bump to 1.13.0
This commit is contained in:
parent
67e22deee3
commit
76073df761
|
@ -0,0 +1,11 @@
|
|||
--- a/scipy/_lib/pocketfft/pocketfft_hdronly.h
|
||||
+++ b/scipy/_lib/pocketfft/pocketfft_hdronly.h
|
||||
@@ -156,7 +156,7 @@
|
||||
// the standard C++ library on Windows does not provide aligned_alloc() even
|
||||
// though the MinGW compiler and MSVC may advertise C++17 compliance.
|
||||
// aligned_alloc is only supported from MacOS 10.15.
|
||||
-#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER)) && (__MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15)
|
||||
+#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER)) && (__MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15) && !(defined(__ANDROID__) && __ANDROID_API__ < 26)
|
||||
inline void *aligned_alloc(size_t align, size_t size)
|
||||
{
|
||||
// aligned_alloc() requires that the requested size is a multiple of "align"
|
|
@ -1,38 +0,0 @@
|
|||
From 8c96a1f742335bca283aae418763aaba62c03378 Mon Sep 17 00:00:00 2001
|
||||
From: Ilhan Polat <ilhanpolat@gmail.com>
|
||||
Date: Thu, 18 Jan 2024 14:47:42 +0100
|
||||
Subject: [PATCH] MAINT:linalg:Adjust lwork/liwork changes OpenBLAS 0.3.26
|
||||
|
||||
See https://github.com/Reference-LAPACK/lapack/pull/942
|
||||
---
|
||||
scipy/linalg/flapack_sym_herm.pyf.src | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/scipy/linalg/flapack_sym_herm.pyf.src b/scipy/linalg/flapack_sym_herm.pyf.src
|
||||
index f07dbaecbc72..af04e0d8d8d8 100644
|
||||
--- a/scipy/linalg/flapack_sym_herm.pyf.src
|
||||
+++ b/scipy/linalg/flapack_sym_herm.pyf.src
|
||||
@@ -762,8 +762,8 @@ subroutine <prefix2>syevr(compute_v,range,lower,n,a,lda,vl,vu,il,iu,abstol,w,z,m
|
||||
<ftype2> optional,intent(in) :: vl=0.0
|
||||
<ftype2> optional,intent(in),check(vu>=vl),depend(vl) :: vu=1.0
|
||||
<ftype2> intent(in) :: abstol=0.0
|
||||
- integer optional,intent(in),depend(n),check(lwork>=max(1,26*n)||lwork==-1) :: lwork=max(26*n,1)
|
||||
- integer optional,intent(in),depend(n),check(liwork>=max(1,10*n)||liwork==-1):: liwork= max(1,10*n)
|
||||
+ integer optional,intent(in),depend(n),check(lwork>=(n <= 1 ? 1 : max(1,26*n))||lwork==-1) :: lwork=max(26*n,1)
|
||||
+ integer optional,intent(in),depend(n),check(liwork>=(n <= 1 ? 1 : max(1,10*n))||liwork==-1):: liwork= max(1,10*n)
|
||||
|
||||
integer intent(hide),depend(a) :: n=shape(a,0)
|
||||
integer intent(hide),depend(n) :: lda=max(1,n)
|
||||
@@ -832,9 +832,9 @@ subroutine <prefix2c>heevr(compute_v,range,lower,n,a,lda,vl,vu,il,iu,abstol,w,z,
|
||||
<ftype2> optional,intent(in) :: vl=0.0
|
||||
<ftype2> optional,intent(in),check(vu>vl),depend(vl) :: vu=1.0
|
||||
<ftype2> intent(in) :: abstol=0.0
|
||||
- integer optional,intent(in),depend(n),check(lwork>=max(2*n,1)||lwork==-1) :: lwork=max(2*n,1)
|
||||
- integer optional,intent(in),depend(n),check(lrwork>=max(24*n,1)||lrwork==-1) :: lrwork=max(24*n,1)
|
||||
- integer optional,intent(in),depend(n),check(liwork>=max(1,10*n)||liwork==-1):: liwork= max(1,10*n)
|
||||
+ integer optional,intent(in),depend(n),check(lwork>=(n <= 1 ? 1 : max(1,2*n))||lwork==-1) :: lwork=max(2*n,1)
|
||||
+ integer optional,intent(in),depend(n),check(lrwork>=(n <= 1 ? 1 : max(1,24*n))||lrwork==-1) :: lrwork=max(24*n,1)
|
||||
+ integer optional,intent(in),depend(n),check(liwork>=(n <= 1 ? 1 : max(1,10*n))||liwork==-1):: liwork= max(1,10*n)
|
||||
|
||||
integer intent(hide),depend(a) :: n=shape(a,0)
|
||||
integer intent(hide),depend(n) :: lda=max(1,n)
|
|
@ -0,0 +1,14 @@
|
|||
--- a/tools/generate_f2pymod.py
|
||||
+++ b/tools/generate_f2pymod.py
|
||||
@@ -290,9 +290,9 @@
|
||||
cwd=os.getcwd())
|
||||
out, err = p.communicate()
|
||||
if not (p.returncode == 0):
|
||||
- raise RuntimeError(f"Writing {args.outfile} with f2py failed!\n"
|
||||
+ raise RuntimeError(f"Processing {fname_pyf} with f2py failed!\n"
|
||||
f"{out}\n"
|
||||
- r"{err}")
|
||||
+ f"{err}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
|
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://scipy.org/
|
|||
TERMUX_PKG_DESCRIPTION="Fundamental algorithms for scientific computing in Python"
|
||||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="1.12.0"
|
||||
TERMUX_PKG_VERSION="1.13.0"
|
||||
TERMUX_PKG_SRCURL=git+https://github.com/scipy/scipy
|
||||
TERMUX_PKG_DEPENDS="libc++, libopenblas, python, python-numpy"
|
||||
TERMUX_PKG_BUILD_DEPENDS="python-numpy-static"
|
||||
|
@ -58,7 +58,7 @@ termux_step_configure() {
|
|||
|
||||
termux_step_make() {
|
||||
pushd $TERMUX_PKG_SRCDIR
|
||||
python -m build -w -n -x --config-setting builddir=$TERMUX_PKG_BUILDDIR .
|
||||
PYTHONPATH= python -m build -w -n -x --config-setting builddir=$TERMUX_PKG_BUILDDIR .
|
||||
popd
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue