pytries / marisa-trie

Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library.
https://marisa-trie.readthedocs.io/en/latest/
MIT License
1.03k stars 91 forks source link

Pypy Compilation Error #19

Closed jmp0xf closed 3 years ago

jmp0xf commented 9 years ago

It can not be installed with Pypy. Following error is showed: error: use of undeclared identifier 'PyByteArray_FromStringAndSize';

kmike commented 9 years ago

marisa-trie Python wrapper relies on Cython to generate the bindings; Cython generates PyByteArray_FromStringAndSize which looks unsupported by pypy.

PyPy support would be nice, but I'm not sure what can be done here. PyPy support is not declared in setup.py, and I'm not testing marisa-trie with PyPy because the tests has been failing from the beginning.

superbobry commented 8 years ago

@jmp0xf can you please add the version of PyPy you were using?

jmp0xf commented 8 years ago

@superbobry Pypy 2.5, I guess.

daa commented 6 years ago

JFYI, combination of PyPy-5.9.0 and Cython-0.27.3 works well for marisa-trie and give no compilation errors.

BoboTiG commented 3 years ago

Have a look at #66 ;)