Open hosiet opened 7 months ago
Unofficially, I have created bindings that can be built with Python 3.10 and later. The source code is derived from the original, and I have set it up for package management via pip and for building with Python 3.10 and later.
https://github.com/juno-rmks/marisa-bindings
The README mentions that it can be installed from PyPI, but since this is an alpha version, it currently only supports installation from GitHub.
% pip install git+https://github.com/juno-rmks/marisa-bindings.git
I have confirmed that the native libraries can be compiled correctly on macOS (Apple Silicon) and Windows (x86_64), but I have not tested on other operating systems or architectures, including Linux. If anyone has time to try it out, I would appreciate your feedback.
If everything works well, I will upgrade to version 1.0.0 and upload it to PyPI.
The name "marisa-trie" is already in use, and using "marisa-swig" would imply reliance solely on SWIG in the future, so I chose the name "marisa-bindings."
https://github.com/s-yata/marisa-trie/blob/006020c1df76d0d7dc6118dacc22da64da2e35c4/bindings/python/marisa.py#L12
The current python binding includes
include imp
instruction, which will raise error with Python 3.12 or later because theimp
module has been removed with Python 3.12.Downstream bug report: https://bugs.debian.org/1061809
When trying to regenerate the python binding with swig 4.2, the following warnings will appear:
Please revise the Python binding and fix the warnings accordingly. Thanks!