Skip to content

[WIP] NumPy 2.0#51077

Closed
ahesford wants to merge 27 commits intovoid-linux:masterfrom
ahesford:numpy
Closed

[WIP] NumPy 2.0#51077
ahesford wants to merge 27 commits intovoid-linux:masterfrom
ahesford:numpy

Conversation

@ahesford
Copy link
Copy Markdown
Member

@ahesford ahesford commented Jul 2, 2024

This update removes a lot of long-deprecated interfaces and probably breaks several dependants. It will need careful testing.

[ci skip]

The following packages ship shared libraries; most require a rebuild to even be importable, and the rest are included just to be sure (each will be ticked as it is tested for compatibility):

  • gnuradio
  • mypaint (leaf; launches and interacts with me)
  • opencv
  • plplot (leaf; launches and allows me to plot lines in a trivial test)
  • python3-Bottleneck (a single test failure for memory leaks appears unrelated to NumPy)
  • python3-PyOpenGL-accelerate (its only dependant doesn't require NumPy support, so I'll rebuild without support)
  • python3-h5py
  • python3-matplotlib (basic use seems to work)
  • python3-numexpr
  • python3-numpy-stl (several test failures related to closeness tests that aren't quite as close as expected; also, a few interface changes leak into tests)
  • python3-pandas
  • python3-pyFFTW (leaf)
  • python3-pyopencl (leaf)
  • python3-pywt
  • python3-scikit-image (leaf)
  • python3-scikit-learn (leaf)
  • python3-scipy
  • python3-tables (leaf)
  • python3-vispy (leaf)
  • urh (leaf; I can launch this, but have no means to really test it)
  • wxPython (doesn't actually depend on NumPy, so it will be rebuilt to correct dependencies)

The following package may or may not break with new NumPy, but is already broken because it requires Python < 3.12:

  • DisplayCAL

The following packages do not appear to build Python extensions and should not require a rebuild, but some tests should be performed to ensure basic functionality with NumPy 2.0:

  • bCNC (leaf)
  • flowblade (leaf)
  • grass
  • hydrus (leaf)
  • inkscape (leaf - seems to work in my simple use tests)
  • openrazer-meta
  • pymol (leaf)
  • python3-bokeh (leaf)
  • python3-imageio
  • python3-joblib
  • python3-niapy (leaf)
  • python3-openai (leaf)
  • python3-pgzero (leaf)
  • python3-pycollada
  • python3-pyqtgraph
  • python3-pytools
  • python3-seaborn (leaf)
  • python3-tifffile
  • python3-trimesh
  • pythran (compiles python3-scipy and python3-scikit-image just fine)
  • qgis (leaf)
  • xdot (leaf)

@ahesford ahesford marked this pull request as draft July 2, 2024 14:33
@Calandracas606
Copy link
Copy Markdown
Contributor

Calandracas606 commented Jul 2, 2024

The following package may or may not break with new NumPy, but is already broken because it requires Python < 3.12:

  • DisplayCAL

There's a new version available. I'll take a look and see if I can get it working with python 3.12

@Calandracas606
Copy link
Copy Markdown
Contributor

Calandracas606 commented Jul 2, 2024

updating DisplayCAL to 3.9.12 should unbreak it with python 3.12

I'll do that in a new PR

@Calandracas606
Copy link
Copy Markdown
Contributor

@ahesford ahesford force-pushed the numpy branch 7 times, most recently from 5253943 to 383c029 Compare July 8, 2024 17:29
@ahesford ahesford force-pushed the numpy branch 2 times, most recently from 7db4274 to a656cfb Compare July 18, 2024 00:56
@tornaria
Copy link
Copy Markdown
Contributor

Note: sagemath 10.4 in our repo is already patched to support numpy 2.0, but it will need to be rebuilt.

@ahesford ahesford force-pushed the numpy branch 2 times, most recently from dbe6a42 to b25822a Compare July 23, 2024 17:37
@ahesford ahesford force-pushed the numpy branch 2 times, most recently from cfac047 to 72b55b5 Compare July 31, 2024 13:41
@ahesford
Copy link
Copy Markdown
Member Author

9c5fb2e

@ahesford ahesford closed this Jul 31, 2024
@ahesford ahesford deleted the numpy branch August 2, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants