Upgrade compatibility / PyPI / 1.26.4 to 2.1.1
Is upgrading numpy from 1.26.4 to 2.1.1 safe on Debian, Ubuntu, Alpine and RHEL?
4 of 4 distro images resolve a compatible artifact for numpy 2.1.1; the license is unchanged (BSD-3-Clause).
Written by Osty EngineeringPublished Updated Ed25519-signed seed preview
- Distro images broken
- None
- License
- BSD-3-Clause, unchanged
- Removed public symbols
- 7
- Analyzer
- Python AST
ELF and libc compatibility matrix
The resolver picks the artifact each distro image would install, then reads its DT_NEEDED and VERNEED entries against the libc that ships in that image.
| Distro | libc | Resolved artifact | Required symbol version | DT_NEEDED | Verdict |
|---|---|---|---|---|---|
| Debian 12 (bookworm) | glibc 2.36 | numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.whl | GLIBC_2.17 | libc.so.6, libm.so.6, libpthread.so.0, libgfortran.so.5 | Compatible |
| Ubuntu 24.04 (noble) | glibc 2.39 | numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.whl | GLIBC_2.17 | libc.so.6, libm.so.6, libpthread.so.0, libgfortran.so.5 | Compatible |
| Alpine 3.20 | musl 1.2.5 | numpy-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl | musl 1.2.2 | libc.musl-x86_64.so.1, libgfortran.so.5 | Compatible |
| RHEL 9 | glibc 2.34 | numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.whl | GLIBC_2.17 | libc.so.6, libm.so.6, libpthread.so.0, libgfortran.so.5 | Compatible |
SPDX license shift
License identifiers are read from package metadata and LICENSE files of both versions and normalized to SPDX.
| From | To | Shift |
|---|---|---|
BSD-3-Clause | BSD-3-Clause | Unchanged |
Public API break summary
Exported symbols of both versions are compared with a language-native analyzer; removed and re-typed symbols break callers at build time.
| Analyzer | Added | Removed | Changed signatures | Removed symbols named |
|---|---|---|---|---|
| Python AST | 105 | 7 | 4 | numpy.float_, numpy.complex_, numpy.NaN, numpy.Inf, numpy.unicode_ |
More from the upgrade compatibility atlas
- onnxruntime3 of 4 distro images resolve a compatible artifact for onnxruntime 1.19.2; the license is unchanged (MIT).
- pillow4 of 4 distro images resolve a compatible artifact for pillow 11.0.0; the license is changed (MIT-CMU).
- pyarrow3 of 4 distro images resolve a compatible artifact for pyarrow 17.0.0; the license is unchanged (Apache-2.0).
- Upgrade dossiersBefore a fleet upgrade, check which distro images can load the new artifact, whether the license moved, and how many public symbols disappeared.