Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON
Date: Mon, 11 Jan 2010 08:04:56
Message-Id: 20100111075030.GA452@gentoo.org
In Reply to: Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON by Arfrever Frehtes Taifersar Arahesis
1 On 11-01-2010 01:25:45 +0100, Arfrever Frehtes Taifersar Arahesis wrote:
2 > > Can you explain the intended use of this variable, and why normal DEPEND
3 > > is not sufficient?
4 >
5 > PYTHON_DEPEND is intented to simplify specification of dependency on Python.
6 >
7 > PYTHON_DEPEND="2:2.5" is shorter than:
8 > DEPEND="|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* =dev-lang/python-2.5* )"
9
10 So if there is enough space to express the dependency with the current
11 syntax, is it worth introducing a new shorthand for it then?
12
13 Also for this example, why does 2:2.5 expand to 2.7, 2.6 and 2.5? I
14 would have expected 2.0 ... 2.5. Maybe the language isn't as intuitive
15 then as Sebastian pointed out.
16
17
18 --
19 Fabian Groffen
20 Gentoo on a different level

Replies

Subject Author
[gentoo-dev] Re: PYTHON_DEPEND - Suggested replacement for NEED_PYTHON Duncan <1i5t5.duncan@×××.net>
Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>