Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310355 - distutils/python eclass pull in python-3* even when requesting ebuild does not support it
Summary: distutils/python eclass pull in python-3* even when requesting ebuild does no...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-20 10:31 UTC by Thomas Sachau
Modified: 2010-03-20 15:32 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 Thomas Sachau gentoo-dev 2010-03-20 10:31:21 UTC
Both eclasses seem to add "dev-lang/python" to the dependency tree, when the inheriting ebuild does not specify something special about the python version. But this means, that packages, which where not adjusted and tested for python-3* will pull it in and could break, if a user switches to python-3* or removes python-2* from his system. So those eclasses should only uncondidionally add "dev-lang/python" to the dependency tree, if the package does support *all* versions of python.

Example: dev-libs/protobuf, it does only python related things with python USE flag, but inherits distutils eclass for this, which then does add python-3* to dependency tree.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-20 14:14:40 UTC
The ebuilds of packages not supporting all Python versions should be fixed (by setting PYTHON_DEPEND). distutils.eclass cannot prefer any particular Python version. python.eclass doesn't add any dependency on Python when no special variable is set in ebuild.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2010-03-20 15:25:53 UTC
Why not just make PYTHON_DEPEND a required setting for any consumer of the eclass (or a derivative eclass adding the check) ?

W/ the bits you're trying to push for multi-abi, the abi's supported should really be specified in some fashion *explicitly* (even if it's just stating "I should work with everything")...
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-20 15:30:26 UTC
I have some different plans, but this bug is not for discussion.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2010-03-20 15:32:20 UTC
(In reply to comment #3)
> I have some different plans, but this bug is not for discussion.

Considering the nature of the bug filed, I'd say it's the place to state the plans so folk can work on it.  Development isn't a vacuum.