Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16698

NumPy 2 transition is ongoing

From Timo Röhling <roehling@debian.org>
Newsgroups linux.debian.maint.python
Subject NumPy 2 transition is ongoing
Date 2025-01-28 16:10 +0100
Message-ID <K9VnY-cDyQ-11@gated-at.bofh.it> (permalink)
Organization The Debian Project

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Dear Debian Pythonistas,

the NumPy 2 transition is now on its way, and while many packages 
seem to rebuild quite nicely, there are a few gotchas I'd like to 
point out, so everyone does not need to figure this out on their 
own.

1. We did some work to improve cross build support in NumPy [1], 
which means that dh-sequence-numpy3 can no longer pull the native 
Python module. If you encounter weird ModuleNotFoundErrors, you 
probably need to add python3-numpy as an explicit dependency.

2. The NumPy module hierarchy has changed in a way that breaks code 
trying to compute the include path to the NumPy headers on its own. 
If you encounter build errors where GCC fails to find headers such 
as numpy/arrayobject.h, make sure you use the intended API to 
configure the build [2].

3. Lintian has yet to catch up with the changed virtual package for 
the NumPy ABI [3], so you might see a few spurious
"missing-dependency-on-numpy-abi" diagnostics.


Cheers
Timo

[1] https://bugs.debian.org/1076236
[2] 
https://numpy.org/doc/stable/reference/generated/numpy.get_include.html
[3] https://bugs.debian.org/1094364

-- 
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar


Thread

NumPy 2 transition is ongoing Timo Röhling <roehling@debian.org> - 2025-01-28 16:10 +0100
  Re: NumPy 2 transition is ongoing thomas@goirand.fr - 2025-01-28 21:20 +0100
    Re: NumPy 2 transition is ongoing Timo Röhling <roehling@debian.org> - 2025-01-28 22:10 +0100
      Re: NumPy 2 transition is ongoing Jochen Sprickerhof <jspricke@debian.org> - 2025-01-29 10:40 +0100

csiph-web