Skip to content

Commit 943b1b4

Browse files
author
Release Manager
committed
sagemathgh-39655: update numpy to 2.2.3, scipy to 1.15.2 this is long overdue update. It needs building tools bumped, too, thus dependencies ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies build tools need a bump - sagemath#39652 : pythran - sagemath#39653 : ninja - sagemath#39654: pybind11 <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#39655 Reported by: Dima Pasechnik Reviewer(s): David Coudert
2 parents 2b78201 + 07e6461 commit 943b1b4

File tree

14 files changed

+32
-21
lines changed

14 files changed

+32
-21
lines changed

.ci/write-dockerfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ cat <<EOF
275275
FROM with-system-packages AS bootstrapped
276276
#:bootstrapping:
277277
RUN rm -rf /new /sage/.git
278-
$ADD Makefile VERSION.txt COPYING.txt condarc.yml README.md bootstrap configure.ac sage .homebrew-build-env tox.ini .gitignore /new/
278+
$ADD Makefile VERSION.txt COPYING.txt condarc.yml README.md bootstrap conftest.py configure_wrapper configure.ac sage .homebrew-build-env tox.ini .gitignore /new/
279279
$ADD config/config.rpath /new/config/config.rpath
280280
$ADD src/doc/bootstrap /new/src/doc/bootstrap
281281
$ADD src/bin /new/src/bin

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ jobs:
311311

312312
- name: Generate Dockerfile
313313
# From docker.yml
314+
# tox -e <environment name> command runs commands in `tox.ini`,
315+
# in particular the script `.ci/write-dockerfile.sh`, to generate `Dockerfile`.
314316
run: |
315317
tox -e ${{ env.TOX_ENV }}
316318
cp .tox/${{ env.TOX_ENV }}/Dockerfile .

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/config.log
1919
/config.status
2020
/configure
21+
/real_configure
2122
/confdefs.h
2223

2324
/m4/sage_spkg_configures.m4

bootstrap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ EOF
146146

147147
st=$?
148148
case $st in
149-
0) true;; # Success
149+
0) # Success
150+
mv configure real_configure
151+
cp configure_wrapper configure;;
150152

151153
179|16|63|127) # no m4 for pkg-config|autotools not installed|or version too old
152154
if [ $DOWNLOAD = yes ]; then
@@ -220,7 +222,7 @@ save () {
220222
fi
221223
mkdir -p upstream
222224
tar zcf "$NEWCONFBALL" \
223-
configure \
225+
configure real_configure configure_wrapper \
224226
config/install-sh config/compile config/config.guess config/config.sub config/missing \
225227
build/make/Makefile-auto.in \
226228
src/doc/en/installation/*.txt \

build/pkgs/meson/spkg-configure.m4

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
SAGE_SPKG_CONFIGURE([meson], [dnl
2-
dnl scipy 1.11.2 needs meson >= 1.1.0
3-
dnl contourpy needs meson >= 1.2.0
4-
dnl meson_python needs meson >= 1.2.3 for Python >= 3.12
5-
AC_CACHE_CHECK([for meson >= 1.2.3], [ac_cv_path_MESON], [dnl
2+
dnl scipy 1.15.2 needs meson >= 1.5.0
3+
AC_CACHE_CHECK([for meson >= 1.5.0], [ac_cv_path_MESON], [dnl
64
dnl Do not accept meson installed in the default user scheme;
75
dnl it will not work in our venv because we set PYTHONUSERBASE
86
dnl in sage-env.
97
WITH_SAGE_PYTHONUSERBASE([dnl
108
AC_PATH_PROGS_FEATURE_CHECK([MESON], [meson], [dnl
119
AS_IF([meson_version=$($ac_path_MESON --version 2>&1)], [dnl
1210
AS_IF([test -n "$meson_version"], [dnl
13-
AX_COMPARE_VERSION([$meson_version], [ge], [1.2.3], [dnl
11+
AX_COMPARE_VERSION([$meson_version], [ge], [1.5.0], [dnl
1412
ac_cv_path_MESON="$ac_path_MESON"
1513
ac_path_MESON_found=:
1614
])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
meson
1+
meson >= 1.5.0

build/pkgs/numpy/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=numpy-VERSION.tar.gz
2-
sha1=915414f1efabd7c183583154cf1a709bd2745828
3-
sha256=697df43e2b6310ecc9d95f05d5ef20eacc09c7c4ecc9da3f235d39e71b7da1e4
2+
sha1=f776e594fbd88e4a50639213b4c510b1588e2dd0
3+
sha256=dbdc15f0c81611925f382dfa97b3bd0bc2c1ce19d4fe50482cb0ddc12ba30020
44
upstream_url=https://files.pythonhosted.org/packages/source/n/numpy/numpy-VERSION.tar.gz
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.26.3
1+
2.2.3

build/pkgs/scipy/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=scipy-VERSION.tar.gz
2-
sha1=0fd6e14972d8dd9b4a656686a40aed00ad0f1396
3-
sha256=4bf5abab8a36d20193c698b0f1fc282c1d083c94723902c447e5d2f1780936a3
2+
sha1=093c30bdd187fd5693a8d2fc9fcb961b96418a85
3+
sha256=cd58a314d92838f7e6f755c8a2167ead4f27e1fd5c1251fd54289569ef3495ec
44
upstream_url=https://files.pythonhosted.org/packages/source/s/scipy/scipy-VERSION.tar.gz
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.12.0
1+
1.15.2

0 commit comments

Comments
 (0)