In Python>=3.8, the field tp_print is renamed as tp_vectorcall_offset(ref). So, when install simhash-py under Python 3.9 or later, an error would occur during building like below:
simhash/simhash.cpp:2112:73: error: no member named 'tp_print' in '_typeobject'
To make simhash compatible with Python>=3.9, I add a version check when applying assignment to this field.
In Python>=3.8, the field
tp_print
is renamed astp_vectorcall_offset
(ref). So, when install simhash-py under Python 3.9 or later, an error would occur during building like below:To make simhash compatible with Python>=3.9, I add a version check when applying assignment to this field.