On Monday 11 of January 2010 01:25:45 Arfrever Frehtes Taifersar Arahesis wrote: > 2010-01-10 21:56:01 Fabian Groffen napisaĆ(a): > > On 10-01-2010 09:29:28 +0100, Arfrever Frehtes Taifersar Arahesis wrote: > > > I would like to suggest introduction of support for PYTHON_DEPEND > > > variable, which would be a better replacement for NEED_PYTHON > > > variable. NEED_PYTHON variable does not allow to specify that e.g. > > > only versions of Python 2 are accepted. (Eventually PYTHON_DEPEND > > > variable will have to be set only in ebuilds of packages not > > > supporting installation for multiple versions of Python.) > > > > Can you explain the intended use of this variable, and why normal DEPEND > > is not sufficient? > > PYTHON_DEPEND is intented to simplify specification of dependency on > Python. > > PYTHON_DEPEND="2:2.5" is shorter than: > DEPEND="|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* > =dev-lang/python-2.5* )"
Doesn't that accidentally mean that dev-lang/python is improperly slotted and all 2.x releases should be slotted with :2? So that dependency string would look like: DEPEND=">=dev-lang/python-2.5.0:2" -- regards MM