Installation fails for Python 3.11
Trying to install on Python 3.11 gives the error
gcc -Wsign-compare -DNDEBUG -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -DOPENSSL_LOAD_CONF -fwrapv -fno-semantic-interposition -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -IVendor/ -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -IVendor/ -fPIC -I/usr/include/python3.11 -c pystencils/boundaries/createindexlistcython.c -o build/temp.linux-x86_64-cpython-311/pystencils/boundaries/createindexlistcython.o
pystencils/boundaries/createindexlistcython.c:211:12: fatal error: longintrepr.h: No such file or directory
211 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
Seems like every Python project using Cython eventually runs into this. I think using a recent Cython version fixes the problem.
See https://github.com/cython/cython/issues/4461 for more information.