Sebastian wrote:
On 08/13/2016 10:33 AM, Michael Ströder wrote:
Any reason why so many Python module packages have the misnomer python-python-* as package names? And the set of this misnomers even grow. Why get these packages accepted then at all? Since ages the convention is that a distribution package name of a Python module should be "python-<import-name>". The wiki says: https://en.opensuse.org/openSUSE:Packaging_Python#Naming_policy All Python module packages, whether pure Python or C-based, should be called python-modulename. modulename should be the name of this module on the Python Package Index, the official third-party software repository for the Python programming language.
This strange SUSE-specific rule is IMO non-sense and will cause nothing than grief. Renaming existing packages will break *lots* of existing (automated) installation routines. And what about Python modules never submitted to PyPI e.g. with their own devpi repo? Also I'd strongly object a request to rename package python-ldap to python-python-ldap. IIRC the project name python-ldap (on SF) was chosen by David back in 1998 to have a distinct name on SF and give enough context in the project name on a dev platform not limited to Python.
The pypi-name is not necessarily the same as the import-name.
Yes.
E.g. python(3)-dnspython provides the module dns, but is referred to everywhere as dnspython Another example is (python(3)-)python-termstyle. Even on pypi it has the python- prefix (Tough in this example it seems a package without the prefix has been created recently, but there are other examples)
This convention is wildly violated. I see 15 with python-python and 3 with python3-python.
Of course you can find such exceptions. And people today are causing even greater mess by using already existent module names. Still that's not a good reason to blindly follow that mess. IIRC the Python project itself imposed the package naming rule of "python-<import-name> because at this time (pre-PyPI) the import name-space was considered to be the only unique name-space for modules. AFAICS all distributions follow that rule (with some errornous exceptions of course). Ciao, Michael.