Package: pyx3
Version: 0.15-5
Severity: normal
Dear Maintainer,
building pyx3 with python 3.10 is failing:
Traceback (most recent call last):
File "/tmp/autopkgtest.UtTakl/autopkgtest_tmp/examples/text/marker.py",
line 10, in <module>
c.writeEPSfile("marker")
File "/usr/lib/python3/dist-packages/pyx/canvas.py", line 50, in
wrappedindocument
return method(d, file, **write_kwargs)
File "/usr/lib/python3/dist-packages/pyx/document.py", line 185, in
writeEPSfile
pswriter.EPSwriter(self, f, **kwargs)
File "/usr/lib/python3/dist-packages/pyx/pswriter.py", line 169, in __init__
registry.output(file, self)
File "/usr/lib/python3/dist-packages/pyx/pswriter.py", line 52, in output
resource.output(file, writer, self)
File "/usr/lib/python3/dist-packages/pyx/font/font.py", line 57, in output
self.t1file.getstrippedfont(self.glyphnames,
self.charcodes).outputPS(file, writer)
File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 1019,
in getstrippedfont
self.gatherglyphcalls(glyph, seacglyphs, subrs, T1context(self))
File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 900,
in gatherglyphcalls
self.gathercalls(self.getglyphcmds(glyph), seacglyphs, subrs, context)
File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 859,
in getglyphcmds
self._data2decode()
File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 721,
in _data2decode
self._data2 = self._eexecdecode(self._data2eexec)
File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 670,
in _eexecdecode
return decoder(code, self.eexecr, 4)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Python 3.10 is now enforcing https://www.python.org/dev/peps/pep-0353/
Upstream has a fix in commit
https://github.com/pyx-project/pyx/commit/0f2834330f7c86dbb5de9f75f9c7c8b7ab4ebabf
via PR https://github.com/pyx-project/pyx/pull/35