Using an alias named apertium.py might cause conflicts with
https://github.com/apertium/apertium-python/blob/74f6a3229a/apertium/analysis/__init__.py#L6-L7
 and
similar usage in python module. `import apertium_core as apertium` would
also cause same issue.

I think renaming the package to python3-apertium_core would be a better
option.

As for python3-cg3, renaming the constraint_grammar to cg3 shouldn't be a
problem

>
On Mon, Oct 14, 2019 at 7:40 PM Francis Tyers <fty...@prompsit.com> wrote:

> El 2019-10-14 08:34, Sushain Cherivirala escribió:
> >> I'm guessing python3-apertium is the name of the new library from
> >> this
> >> GsoC. What is this other package, apertium-python? apt show gives me
> >> nothing.
> >
> > python3-apertium as Tino is referring to it is the SWIG/Python
> > bindings for
> > https://github.com/apertium/apertium. They currently export a
> > `apertium_core` module.
> >
> > This allows for apertium-python
> > (https://github.com/apertium/apertium-python), the
> > GSoC project (from this year and last) to export an `apertium` module
> > that under the
> > hood uses bindings from the `apertium_core`, `lttoolbox`, and
> > `constraint_grammer`
> > Python packages (aspirationally also `hfst`).
> >
> > Since "apertium-python" is the more user facing version, having
> > wrappers for analysis,
> > taggers, translation, etc, it should in my opinion own the `apertium`
> > module. Today,
> > if you run `pip install apertium`, it is what you get. Running
> > `apt-get install python3-apertium`
> > should be consistent with it and it would be very odd otherwise.
> >
> > We chose `apertium_core` in order to avoid the naming conflict but I
> > don't have a great
> > solution as far as the Debian package goes. There weren't plans to
> > export the package
> > to Pip as well so we didn't really focus on it.
> >
>
> Maybe something like apertium-internals ?
>
> But I'd like the whole thing to be under the 'apertium' namespace if
> possible.
>
> e.g. import internals from apertium
>
> The apertium package could throw an error if the other package isn't
> installed.
>
> Fran
>
>
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to