Recent Releases of salsa-matplotlib

salsa-matplotlib -

Main motivation to make effort: I needed to remove /usr/lib/python3/dist-packages/matplotlib*nspkg.pth for my testing.


matplotlib 3.8.3 built for bullseye / bookworm / jammy / noble.

numpy needed to be updated as well, https://salsa.debian.org/python-team/packages/numpy/-/commit/6aa4d2d15a3456518d04a0e01bcb8e51b0e81960 was used.

sudo apt install ./python3-matplotlib_3.8.3-1_amd64.deb ./python-matplotlib-data_3.8.3-1_all.deb ./python3-numpy_1.26.3-1_amd64.deb ./python3-contourpy_1.0.7-1*_amd64.deb should be enough for binary install.

Building procedure was still too complex and it was faster for me to make Dockerfile.

  • bullseye https://github.com/cielavenir/dockerfiles/tree/master/matplotlib38_bullseye
  • jammy https://github.com/cielavenir/dockerfiles/tree/master/matplotlib38_jammy
  • bookworm / noble https://github.com/cielavenir/dockerfiles/tree/master/matplotlib38_bookworm

Note that you might see this error if you have pypy3 installed, but it has nothing to do with cpython:

Failed to byte-compile /usr/lib/python3/dist-packages/numpy/_typing/_nested_sequence.py: File "/usr/lib/python3/dist-packages/numpy/_typing/_nested_sequence.py", line 60 def __len__(self, /) -> int: ^ SyntaxError: invalid syntax (expected ')')


Debian git MR: https://salsa.debian.org/python-team/packages/matplotlib/-/merge_requests/2

- Python
Published by cielavenir over 2 years ago