Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399669 - python.eclass should not require PYTHON_USE_WITH_OPT if PYTHON_DEPEND already specifies a USE flag
Summary: python.eclass should not require PYTHON_USE_WITH_OPT if PYTHON_DEPEND already...
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: 2012-01-22 01:32 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2013-03-02 14:16 UTC (History)
1 user (show)

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 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-22 01:32:31 UTC
Currently, if an ebuild needs to optionally depend on a python interpreter with some specific USE flag set, one needs to use something the following syntax:

PYTHON_DEPEND="python? 2:2.6"
PYTHON_USE_WITH="threads"
PYTHON_USE_WITH_OPT="python"

In other words, one is forced to specify the fact that the python dependency is controlled by USE=python in two places - both in PYTHON_DEPEND and in PYTHON_USE_WITH_OPT. I suggest that the python.eclass be modified to make this redundancy unnecessary, so that the following construct would add a python[threads] dependency only if USE=python:

PYTHON_DEPEND="python? 2:2.6"
PYTHON_USE_WITH="threads"

(See bug #398949 for background.)
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-01-22 21:02:38 UTC
PYTHON_USE_WITH* variables are broken by design and should be killed.

In Progress Overlay in EAPI="4" + PYTHON_ECLASS_API="1" and EAPI="4-python", PYTHON_DEPEND is used to specify both USE conditionals and USE dependencies, without limitations of PYTHON_USE_WITH* and the old syntax of PYTHON_DEPEND.

Read SPECIFICATION OF DEPENDENCIES section in:
http://people.apache.org/~Arfrever/Gentoo_Python_Supplementary_Guide_for_Developers
(If you want additional help in learning of the new syntax, then you can ask for help in #gentoo-progress IRC channel.)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-02 14:16:10 UTC
No new features will be added to python.eclass, so closing as WONTFIX.