Closed hickford closed 11 years ago
Hey Matt,
Yes, you should change those files. marisa-trie uses Cython for generating actual C/C++ Python extension files - you shouldn't change these files manually. Install Cython (pip install -U cython
) and run "update_cpp.sh" script to recreate those files with your changes applied. I've done a bad job describing this here: https://github.com/kmike/marisa-trie#how-is-source-code-organized
It is better to create at least two commits: for changes in pyx/pxd files (just as you've done) and for auto-generated changes in C++ files because C++ changes can be huge and unmeaningful. These generated files are stored in VCS to remove install-time dependency on Cython.
Your changes looks good, but there are a couple of comments.
Hi Mikhail. Thanks for your instructions, this looks fun.
Thanks! A PR with README change is welcome :)
Fix for https://github.com/kmike/marisa-trie/issues/6
I've never written C/C++ extensions for Python. Do I need to change those files too?