Matching package names across distributions
Olivier Thauvin
nanardon at nanardon.zarb.org
Wed Feb 2 09:17:21 PST 2011
* Enrico Zini (enrico at enricozini.org) wrote:
> On Wed, Feb 02, 2011 at 05:36:25PM +0100, Tarek Ziadé wrote:
>
> > Interesting ! One thing I would really love to have is the same
> > matching tool for Python projects.
> >
> > e.g. Distro name <-> Python / PyPI Name
>
> I use some regexp in distromatch to 'stem' python package names to a
> name which is common across distribution, and which should get quite
> close to the PyPI name. Here they are (the capture parentesis catch
> the name):
>
> Debian: ^python\d?-(.+)$
> Fedora: ^(.+)-python\d?$
> Mandriva: ^python-(.+)$
> OpenSUSE: ^python-(.+)$
>
> This is guesswork, except for Debian for which I know the naming
> policy[1]. Since I'm posting to the list, can people from other
> distributions please check their own python module naming policies and
> let me know if those regexps need to be fixed[2]?
Mandriva/Mageia has as policy everybody language module must be name
LANGUAGE-MODULE (eg perl-foo-bar, python-foo, haskell-foo).
So your current regexp is ok, and can be reused for all hight level
langages.
Regards.
--
Olivier Thauvin
CNRS - LATMOS
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/distributions/attachments/20110202/c5bca31e/attachment.pgp>
More information about the Distributions
mailing list