Skip to content

Commit 5d846d0

Browse files
jbrockmendelclaude
andauthored
Backport PR #66090 on branch 3.0.x (BLD: exclude numpy 2.5.0 when building wheels (py3.14 segfault)) (#66319)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent bef7a2b commit 5d846d0

5 files changed

Lines changed: 43 additions & 6 deletions

File tree

‎doc/source/whatsnew/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Version 3.0
1616
.. toctree::
1717
:maxdepth: 2
1818

19+
v3.0.5
1920
v3.0.4
2021
v3.0.3
2122
v3.0.2

‎doc/source/whatsnew/v3.0.5.rst‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. _whatsnew_305:
2+
3+
What's new in 3.0.5 (Month XX, 2026)
4+
------------------------------------
5+
6+
These are the changes in pandas 3.0.5. See :ref:`release` for a full changelog
7+
including other versions of pandas.
8+
9+
{{ header }}
10+
11+
.. ---------------------------------------------------------------------------
12+
.. _whatsnew_305.regressions:
13+
14+
Fixed regressions
15+
~~~~~~~~~~~~~~~~~
16+
17+
- Fixed a regression where the pandas 3.0.4 wheels could crash with a segmentation fault on Python 3.14 (and other datetime code paths), because they were built against an incompatible numpy version (:issue:`66086`)
18+
19+
.. ---------------------------------------------------------------------------
20+
.. _whatsnew_305.bug_fixes:
21+
22+
Bug fixes
23+
~~~~~~~~~
24+
25+
-
26+
27+
.. ---------------------------------------------------------------------------
28+
.. _whatsnew_305.contributors:
29+
30+
Contributors
31+
~~~~~~~~~~~~
32+
33+
.. contributors:: v3.0.4..v3.0.5|HEAD

‎environment.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88

99
# build dependencies
1010
- versioneer
11-
- cython>=3.1.0,<4.0.0a0
11+
- cython>=3.1.0,<4
1212
- meson>=1.2.1,<2
1313
- meson-python>=0.17.1,<1
1414

‎pyproject.toml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ requires = [
55
"meson-python>=0.17.1,<1",
66
"meson>=1.2.1,<2",
77
"wheel",
8-
"Cython>3.1.0,<4.0.0a0", # Note: sync with setup.py, environment.yml and asv.conf.json
9-
# Force numpy higher than 2.0, so that built wheels are compatible
10-
# with both numpy 1 and 2
11-
"numpy>=2.0.0",
8+
# "<4", not "<4.0.0a0": a pre-release in the bound makes pip eligible to
9+
# install Cython pre-releases (that pulled the 3.3.0a1 alpha into 3.0.4).
10+
"Cython>3.1.0,<4", # Note: sync with setup.py, environment.yml and asv.conf.json
11+
# numpy >= 2.0 keeps wheels compatible with numpy 1 and 2. Exclude 2.5.0:
12+
# wheels built against it segfault on older numpy (GH#66086; numpy GH#31804,
13+
# fixed in 2.5.1).
14+
"numpy>=2.0.0,!=2.5.0",
1215
"versioneer[toml]"
1316
]
1417

‎requirements-dev.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pip
55
versioneer[toml]
6-
cython>=3.1.0,<4.0.0a0
6+
cython>=3.1.0,<4
77
meson[ninja]>=1.2.1,<2
88
meson-python>=0.17.1,<1
99
pytest>=8.3.4

0 commit comments

Comments
 (0)