Skip to content

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.

numpy 2.1.1 artifacts resolved on each distro image
DistrolibcResolved artifactRequired symbol versionDT_NEEDEDVerdict
Debian 12 (bookworm)glibc 2.36numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.whlGLIBC_2.17libc.so.6, libm.so.6, libpthread.so.0, libgfortran.so.5Compatible
Ubuntu 24.04 (noble)glibc 2.39numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.whlGLIBC_2.17libc.so.6, libm.so.6, libpthread.so.0, libgfortran.so.5Compatible
Alpine 3.20musl 1.2.5numpy-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whlmusl 1.2.2libc.musl-x86_64.so.1, libgfortran.so.5Compatible
RHEL 9glibc 2.34numpy-2.1.1-cp312-cp312-manylinux_2_17_x86_64.whlGLIBC_2.17libc.so.6, libm.so.6, libpthread.so.0, libgfortran.so.5Compatible

SPDX license shift

License identifiers are read from package metadata and LICENSE files of both versions and normalized to SPDX.

numpy license from 1.26.4 to 2.1.1
FromToShift
BSD-3-ClauseBSD-3-ClauseUnchanged

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.

numpy public API from 1.26.4 to 2.1.1
AnalyzerAddedRemovedChanged signaturesRemoved symbols named
Python AST10574numpy.float_, numpy.complex_, numpy.NaN, numpy.Inf, numpy.unicode_

Know what an upgrade breaks before you ship it

Osty checks glibc, musl, SPDX and API breaks for every upgrade across your fleet and opens verified fix PRs under your policy. Start with a free 10-minute X-Ray.