Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON
Date: Mon, 11 Jan 2010 10:13:34
Message-Id: 201001111000.05597.Arfrever@gentoo.org
In Reply to: Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON by Fabian Groffen
1 2010-01-11 08:50:30 Fabian Groffen napisaƂ(a):
2 > On 11-01-2010 01:25:45 +0100, Arfrever Frehtes Taifersar Arahesis wrote:
3 > > > Can you explain the intended use of this variable, and why normal DEPEND
4 > > > is not sufficient?
5 > >
6 > > PYTHON_DEPEND is intented to simplify specification of dependency on Python.
7 > >
8 > > PYTHON_DEPEND="2:2.5" is shorter than:
9 > > DEPEND="|| ( =dev-lang/python-2.7* =dev-lang/python-2.6* =dev-lang/python-2.5* )"
10 >
11 > So if there is enough space to express the dependency with the current
12 > syntax, is it worth introducing a new shorthand for it then?
13
14 Some eclasses already support some shorthands for specification of some
15 dependencies (e.g. need_apache2() in depend.apache.eclass).
16 As maintainer of some packages depending on Python, I express interest in
17 possibility of brief specification of dependency on Python. I won't be
18 enforcing using of this variable for developers, who want to directly
19 specify dependencies in {,R}DEPEND.
20
21 > Also for this example, why does 2:2.5 expand to 2.7, 2.6 and 2.5? I
22 > would have expected 2.0 ... 2.5.
23
24 The first component ('2') specifies the group of accepted versions.
25 The second component ('2.5') specifies the minimal accepted version inside
26 this group. ('2:2.5' is identical to '2:2.5:'.)
27
28 --
29 Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] PYTHON_DEPEND - Suggested replacement for NEED_PYTHON Gilles Dartiguelongue <eva@g.o>