cg3 icon indicating copy to clipboard operation
cg3 copied to clipboard

How to install python module?

Open reynoldsnlp opened this issue 6 years ago • 3 comments

How does one install the new SWIG-based python module? (Sorry I don't know much about cmake)

reynoldsnlp avatar Oct 31 '19 03:10 reynoldsnlp

Also, any plans to put this in PyPI?

reynoldsnlp avatar Oct 31 '19 03:10 reynoldsnlp

./cmake.sh -DENABLE_PYTHON_BINDINGS=ON or cmake -DENABLE_PYTHON_BINDINGS=ON . depending on whether you use the helper script or not.

As for PyPi, I guess that's a question for @Vaydheesh - I avoid Python if I can help it. I think it gets pulled in by the https://github.com/apertium/apertium-python PyPi module?

TinoDidriksen avatar Oct 31 '19 07:10 TinoDidriksen

The swig wrapper isn't available on PyPI, but it can be installed on Ubuntu using pip install apertium. Apertium Python installs the CG3 swig wrapper package.

It can also be installed separately via python3-cg3

singh-lokendra avatar Nov 01 '19 16:11 singh-lokendra