Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372821 - distutils.eclass: please make PYTHON_MODNAME default to ${PN//-/}
Summary: distutils.eclass: please make PYTHON_MODNAME default to ${PN//-/}
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 13:09 UTC by Michał Górny
Modified: 2013-03-02 14:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-06-24 13:09:51 UTC
Right now, the PYTHON_MODNAME variable defaults to ${PN}. As a Python module name can't contain hyphens, and underscores & capital letters are discouraged, such packages often use ${PN//-/} as their package names.

It would be great if distutils.eclass did such a substitution by default. This would remove the need for explicit PYTHON_MODNAME in a number of packages (including Zope packages). As the module name can't contain hyphens anyway, such a change wouldn't break existing behavior.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-06-26 17:25:29 UTC
Packages which would benefit from this change would be:

app-portage/etc-proposals
app-portage/smart-live-rebuild
dev-util/d-feet
dev-vcs/hg-git
net-wireless/python-wifi

Plus it's the only name transformation officially approved by Python devs :P.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-26 21:49:55 UTC
IMHO such a small number of packages doesn't justify proposed change in behavior. More packages would benefit from using of e.g. ${PN//-//} by default.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-06-26 21:56:18 UTC
(In reply to comment #2)
> IMHO such a small number of packages doesn't justify proposed change in
> behavior. More packages would benefit from using of e.g. ${PN//-//} by default.

Zope could use that in its eclass. For non-zope, the number of packages is small as well.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-26 21:57:42 UTC
Zope packages don't use and don't plan to use any separate eclass (except python-namespaces.eclass, which has different purpose).
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-26 22:04:51 UTC
(In reply to comment #4)

I meant that only net-zope/namespaces-* packages from net-zope category will use python-namespaces.eclass. Other Zope packages (like net-zope/zope-interface) won't use this eclass and will depend on appropriate net-zope/namespaces-* packages.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-02 14:16:06 UTC
No new features will be added to python.eclass, so closing as WONTFIX.