Menu

#53 Adapt code for NumPy 2

v1.0_(example)
open
nobody
None
1
2025-03-24
2025-03-13
No

The Debian package for MathGL, of which I am the co-maintainer, is currently blocked from entering the testing distribution and thus prevented from being included in the next release of Debian.

The reason is the build failure against NumPy 2 (see Bug#1094884).

Is there any chance that the code will be adapted to Numpy 2? A migration guide is available, if that helps.

Discussion

  • Alexey Balakin

    Alexey Balakin - 2025-03-15

    I'll try to make changes for numpy2 compatibility. But I couldn't check it right now, since numpy2 isn't included in Ubuntu yet. So, this will take a time for me.

     
  • Alexey Balakin

    Alexey Balakin - 2025-03-17

    Hi, we are trying to fix compatibility issues with numpy2. Can you check it for latest SVN rev. 1757? Please e-mail me if build failure against NumPy 2 will continue. I'll try to install Debian testing and compile in it directly.

     
  • Rafael Laboissière

    I am not very proficient with SVN, but I gave it a try. The Debian package does not build against the sources in rev. 1757. It seems that some change made between rev. 1745 and rev. 1748 is the culprit.

    Could you please prepare a patch containing only the NumPy2-related changes, please?

     
  • Alexey Balakin

    Alexey Balakin - 2025-03-18

    Hmm, I specially install Debian testing (Debian GNU/Linux trixie/sid) in VirtualBox today and just compile recent SVN (using command: svn checkout svn://svn.code.sf.net/p/mathgl/code/ mathgl-code) with settings enable-all enable-all-swig enable-all-widgets. It produce no error for me. Are you sure that you are using latest SVN revision and empty folder for build (or delete cache in cmake before configure and build)?

     
  • Rafael Laboissière

    Good news : I managed to build the Debian package from source (SVN rev. 1757).

    I uploaded a new version of the Debian package to the experimental distribution. So far, the autobuilders are happy with this version.

    Note that I built this package from the tarball I got from SVN revision #1757. So I set its “upstream version number” to 8.0.2+svn.r1757. I could upload this version to Debian unstable, unless you think it is not appropriate and we should wait until the

     

    Last edit: Rafael Laboissière 2025-03-21
  • Alexey Balakin

    Alexey Balakin - 2025-03-24

    OK, I'll try to make new v.8.0.3 during this week (probably at Wednesday).

     

Anonymous
Anonymous

Add attachments
Cancel