Matching package names across distributions

Tarek Ziadé ziade.tarek at gmail.com
Wed Feb 2 09:41:59 PST 2011


On Wed, Feb 2, 2011 at 6:20 PM, Michael Scherer <misc at zarb.org> wrote:
> Le mercredi 02 février 2011 à 18:17 +0100, Olivier Thauvin a écrit :
>> * 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).
>
> Well, not everybody follow the policy :/
>
> ( at least for python ).
> And there is the case issue.

Having a default mapping rule is already a good thing, it's a valuable
information for both sides

For instance, instead of doing my custom function to generate a RPM
out of my Python projects with the correct name,  I could use that
tool and just tell it under which flavor of Fedora or CentOS I am.

Now, if a package does not follow the convention, does each packaging
system keep the original name of the Python project somewhere ?

If so, how hard would it be to fetch this information ?

>
> --
> Michael Scherer
>
> _______________________________________________
> Distributions mailing list
> Distributions at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/distributions
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Distributions mailing list