void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

[WIP] NumPy 2.0

Open ahesford opened this issue 1 year ago • 3 comments

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
  • [ ] opencv
  • [ ] plplot
  • [x] python3-Bottleneck (a single test failure for memory leaks appears unrelated to NumPy)
  • [x] python3-PyOpenGL-accelerate (its only dependant doesn't require NumPy support, so I'll rebuild without support)
  • [x] python3-h5py
  • [x] python3-matplotlib (basic use seems to work)
  • [x] 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 (several test failures, with implications beyond NumPy; needs more investigation)
  • [ ] python3-pyopencl
  • [x] python3-pywt
  • [ ] python3-scikit-image
  • [ ] python3-scikit-learn
  • [ ] python3-scipy
  • [ ] python3-tables
  • [ ] python3-vispy
  • [ ] urh
  • [x] 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
  • [ ] flowblade
  • [ ] grass
  • [ ] hydrus
  • [ ] inkscape
  • [ ] openrazer-meta
  • [ ] pymol
  • [ ] python3-bokeh
  • [ ] python3-imageio
  • [ ] python3-joblib
  • [ ] python3-niapy
  • [ ] python3-openai
  • [ ] python3-pgzero
  • [ ] python3-pycollada
  • [ ] python3-pyqtgraph
  • [x] python3-pytools
  • [ ] python3-seaborn
  • [ ] python3-tifffile
  • [ ] python3-trimesh
  • [x] pythran (compiles python3-scipy and python3-scikit-image just fine)
  • [ ] qgis
  • [ ] xdot

ahesford avatar Jul 02 '24 14:07 ahesford

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 avatar Jul 02 '24 14:07 Calandracas606

updating DisplayCAL to 3.9.12 should unbreak it with python 3.12

I'll do that in a new PR

Calandracas606 avatar Jul 02 '24 14:07 Calandracas606

https://github.com/eoyilmaz/displaycal-py3/issues/335

Calandracas606 avatar Jul 02 '24 15:07 Calandracas606

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

tornaria avatar Jul 21 '24 16:07 tornaria

9c5fb2efa8046d8e4f6ec76878ac77462a313c41

ahesford avatar Jul 31 '24 19:07 ahesford