Skip to content

Commit ca9d157

Browse files
committed
Merge remote-tracking branch 'upstream/main' into lmoment
2 parents 9602c15 + be11e29 commit ca9d157

File tree

166 files changed

+3257
-1552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+3257
-1552
lines changed

.github/workflows/linux_intel_oneAPI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
channel-priority: true
5656
activate-environment: scipy-dev
5757
use-only-tar-bz2: false
58-
miniforge-variant: Mambaforge
58+
miniforge-variant: Miniforge3
5959
miniforge-version: latest
6060
use-mamba: true
6161

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
channel-priority: true
8383
activate-environment: scipy-dev
8484
use-only-tar-bz2: false
85-
miniforge-variant: Mambaforge
85+
miniforge-variant: Miniforge3
8686
miniforge-version: latest
8787
use-mamba: true
8888

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
# build and test the wheel
239239
auto-update-conda: true
240240
python-version: "3.10"
241-
miniconda-version: "latest"
241+
miniforge-version: latest
242242

243243
- name: Upload wheels
244244
if: success()

benchmarks/benchmarks/sparse.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,17 @@ def time_block_diag(self, num_matrices):
206206

207207
class BlockDiagSparseConstruction(Benchmark):
208208
param_names = ['num_matrices']
209-
params = [100, 500, 1000, 1500, 2000]
209+
params = [1000, 5000, 10000, 15000, 20000]
210210

211211
def setup(self, num_matrices):
212212
self.matrices = []
213213
for i in range(num_matrices):
214214
rows = np.random.randint(1, 20)
215215
columns = np.random.randint(1, 20)
216-
mat = np.random.randint(0, 10, (rows, columns))
216+
density = 2e-3
217+
nnz_per_row = int(density*columns)
218+
219+
mat = random_sparse(rows, columns, nnz_per_row)
217220
self.matrices.append(mat)
218221

219222
def time_block_diag(self, num_matrices):

ci/cirrus_wheels.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,17 @@ cirrus_wheels_linux_aarch64_task:
2424
# single task takes longer than 60 mins (the default time limit for a
2525
# cirrus-ci task).
2626
- env:
27-
CIBW_BUILD: cp310-manylinux*
27+
CIBW_BUILD: cp313-manylinux* cp310-manylinux*
2828
- env:
2929
CIBW_BUILD: cp311-manylinux* cp312-manylinux*
3030
env:
3131
CIBW_PRERELEASE_PYTHONS: True
32-
# TODO remove the CIBW_BEFORE_BUILD_LINUX line once there are numpy2.0 wheels available on PyPI.
33-
# Also remove/comment out PIP_NO_BUILD_ISOLATION, PIP_EXTRA_INDEX_URL flags.
34-
CIBW_BEFORE_BUILD_LINUX: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja;bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
35-
CIBW_ENVIRONMENT: >
36-
PIP_PRE=1
37-
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
38-
PIP_NO_BUILD_ISOLATION=false
39-
PKG_CONFIG_PATH=/project
32+
# The following settings are useful when targetting an unreleased Python version.
33+
#CIBW_BEFORE_BUILD_LINUX: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja;bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
34+
#CIBW_ENVIRONMENT: >
35+
# PIP_PRE=1
36+
# PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
37+
# PIP_NO_BUILD_ISOLATION=false
4038

4139
build_script: |
4240
apt install -y python3-venv python-is-python3
@@ -88,14 +86,14 @@ cirrus_wheels_upload_task:
8886
apt-get update
8987
apt-get install -y curl wget
9088
91-
# install miniconda in the home directory. For some reason HOME isn't set by Cirrus
89+
# install miniforge in the home directory. For some reason HOME isn't set by Cirrus
9290
export HOME=$PWD
9391
94-
# install miniconda for uploading to anaconda
95-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
96-
bash miniconda.sh -b -p $HOME/miniconda3
97-
$HOME/miniconda3/bin/conda init bash
98-
source $HOME/miniconda3/bin/activate
92+
# install miniforge for uploading to anaconda
93+
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
94+
bash Miniforge3.sh -b -p "${HOME}/miniforge"
95+
$HOME/miniforge/bin/conda init bash
96+
source $HOME/miniforge/bin/activate
9997
conda install -y anaconda-client
10098
10199
# The name of the zip file is derived from the `wheels_artifact` line.

doc/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ clean:
5353
UPLOAD_DIR=/srv/docs_scipy_org/doc/scipy-$(RELEASE)
5454

5555
SCIPYVER:=$(shell $(PYTHON) -c "import scipy; print(scipy.version.git_revision[:10])" 2>/dev/null)
56-
GITVER ?= $(shell cd ../tools; $(PYTHON) -c "from version_utils import git_version; \
57-
print(git_version('..')[0][:10])")
56+
GITVER ?= $(shell (cd ..; set -o pipefail && git rev-parse HEAD 2>/dev/null | cut -c1-7) || echo Unknown)
5857

5958
version-check:
6059
ifeq "$(GITVER)" "Unknown"

doc/source/_static/version_switcher.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
"url": "https://scipy.github.io/devdocs/"
66
},
77
{
8-
"name": "1.14.0 (stable)",
9-
"version":"1.14.0",
8+
"name": "1.14.1 (stable)",
9+
"version":"1.14.1",
1010
"preferred": true,
11+
"url": "https://docs.scipy.org/doc/scipy-1.14.1/"
12+
},
13+
{
14+
"name": "1.14.0",
15+
"version":"1.14.0",
1116
"url": "https://docs.scipy.org/doc/scipy-1.14.0/"
1217
},
1318
{

doc/source/building/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Otherwise, conda is recommended.
230230
.. note::
231231

232232
If you don't have a conda installation yet, we recommend using
233-
Mambaforge_; any conda flavor will work though.
233+
Miniforge_; any conda flavor will work though.
234234

235235
Building from source to use SciPy
236236
`````````````````````````````````
@@ -442,5 +442,5 @@ Background information
442442
distutils_equivalents
443443

444444

445-
.. _Mambaforge: https://github.com/conda-forge/miniforge#mambaforge
445+
.. _Miniforge: https://github.com/conda-forge/miniforge#miniforge
446446
.. _meson-python: https://mesonbuild.com/meson-python/

doc/source/dev/contributor/debugging_linalg_issues.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ and LAPACK. E.g.::
4646
found: True
4747
version: 0.3.23
4848
detection method: pkgconfig
49-
include directory: /home/user/mambaforge/envs/scipy-dev/include
50-
lib directory: /home/user/mambaforge/envs/scipy-dev/lib
49+
include directory: /home/user/miniforge/envs/scipy-dev/include
50+
lib directory: /home/user/miniforge/envs/scipy-dev/lib
5151
openblas configuration: USE_64BITINT=0 DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK=0 NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP=0 PRESCOTT MAX_THREADS=128
52-
pc file directory: /home/user/mambaforge/envs/scipy-dev/lib/pkgconfig
52+
pc file directory: /home/user/miniforge/envs/scipy-dev/lib/pkgconfig
5353

5454
This method will be correct for SciPy wheels and for local dev builds. It *may*
5555
be correct for other installs, however keep in mind that distros like
@@ -68,7 +68,7 @@ on plain Netlib BLAS, see
6868
"user_api": "blas",
6969
"internal_api": "openblas",
7070
"prefix": "libopenblas",
71-
"filepath": "/home/user/mambaforge/envs/dev/lib/libopenblasp-r0.3.21.so",
71+
"filepath": "/home/user/miniforge/envs/dev/lib/libopenblasp-r0.3.21.so",
7272
"version": "0.3.21",
7373
"threading_layer": "pthreads",
7474
"architecture": "SkylakeX",
@@ -89,7 +89,7 @@ Other ways of introspecting that can be helpful in local dev environments includ
8989

9090
$ ldd build/scipy/linalg/_fblas.cpython-*.so
9191
...
92-
libopenblas.so.0 => /home/user/mambaforge/envs/scipy-dev/lib/libopenblas.so.0 (0x0000780d6d000000)
92+
libopenblas.so.0 => /home/user/miniforge/envs/scipy-dev/lib/libopenblas.so.0 (0x0000780d6d000000)
9393

9494
.. tab-item:: macOS
9595
:sync: macos
@@ -112,15 +112,15 @@ Other ways of introspecting that can be helpful in local dev environments includ
112112

113113
::
114114

115-
$ nm -gD ~/mambaforge/envs/scipy-dev/lib/libblas.so | rg openblas_set_num_threads
115+
$ nm -gD ~/miniforge/envs/scipy-dev/lib/libblas.so | rg openblas_set_num_threads
116116
0000000000362990 T openblas_set_num_threads
117117

118118
.. tab-item:: macOS
119119
:sync: macos
120120

121121
::
122122

123-
% nm ~/mambaforge/envs/scipy-dev/lib/libblas.3.dylib | rg openblas_set_num_threads
123+
% nm ~/miniforge/envs/scipy-dev/lib/libblas.3.dylib | rg openblas_set_num_threads
124124
000000000015b6b0 T _openblas_set_num_threads
125125

126126

@@ -527,7 +527,7 @@ Here is an example ``gdb`` session::
527527
(Pdb) c # continue execution until the C breakpoint
528528

529529
Thread 1 "python" hit Breakpoint 1, 0x00007ffff4c48820 in dpotrf_ ()
530-
from /home/br/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/numpy/core/../../../../libcblas.so.3
530+
from /home/br/miniforge/envs/scipy-dev/lib/python3.10/site-packages/numpy/core/../../../../libcblas.so.3
531531
(gdb) s # step through the C function
532532
Single stepping until exit from function dpotrf_,
533533
which has no line number information.

doc/source/dev/core-dev/releasing.rst.inc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,9 @@ and PRs under the Milestone for the release
117117
(https://github.com/scipy/scipy/milestones), PRs labeled "backport-candidate",
118118
and that the release notes are up-to-date and included in the html docs.
119119

120-
Then edit ``meson.build`` and ``tools/version_utils.py`` to get the correct version number (set
121-
``version:`` in the former, and ``ISRELEASED = True`` in the latter). It is
122-
also necessary to adjust the ``version`` in ``pyproject.toml``. Commit these
123-
changes with a message like ``REL: set version to <version-number>``. Don't push
124-
this commit to the SciPy repo yet.
120+
Then update the ``version`` in ``pyproject.toml`` and commit the change with a
121+
message like ``REL: set version to <version-number>``. Don't push this commit
122+
to the SciPy repo yet.
125123

126124
Finally tag the release locally with ``git tag -s <v1.x.y>`` (the ``-s`` ensures
127125
the tag is signed). If ``gpg2`` is preferred, then

0 commit comments

Comments
 (0)