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 in EAPI >=4, PYTHON_BDEPEND
Date: Sun, 28 Nov 2010 20:52:33
Message-Id: 201011282153.39677.Arfrever@gentoo.org
In Reply to: Re: [gentoo-dev] PYTHON_DEPEND in EAPI >=4, PYTHON_BDEPEND by "Michał Górny"
1 2010-11-28 21:39:43 Michał Górny napisał(a):
2 > On Sun, 28 Nov 2010 21:34:49 +0100
3 > Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o> wrote:
4 >
5 > > 2010-11-28 21:20:31 Michał Górny napisał(a):
6 > > > On Sun, 28 Nov 2010 20:32:16 +0100
7 > > > Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o> wrote:
8 > > >
9 > > > > PYTHON_DEPEND will be required. Otherwise each
10 > > > > "${range_of_versions}" should be included between "<<" and ">>"
11 > > > > markers.
12 > > >
13 > > > Do we really need to introduce those ugly markers? AFAICS in all
14 > > > places they're used you could simply either use version numbers
15 > > > themselves or '*' (instead of '<<>>', and '*[...]' instead of
16 > > > '<<[...]>>').
17 > >
18 > > I prefer to use a character sequence, which isn't valid in
19 > > DEPEND/RDEPEND/PDEPEND.
20 >
21 > Plain version numbers aren't valid there as well.
22 >
23 > > I don't know what you mean by "version numbers". Remember that each
24 > > "<<>>" in an ebuild with empty RESTRICT_PYTHON_ABIS is replaced in
25 > > DEPEND/RDEPEND by: python_abis_2.4? ( dev-lang/python:2.4 )
26 > > python_abis_2.5? ( dev-lang/python:2.5 )
27 > > python_abis_2.6? ( dev-lang/python:2.6 )
28 > > python_abis_2.7? ( dev-lang/python:2.7 )
29 > > python_abis_3.0? ( dev-lang/python:3.0 )
30 > > python_abis_3.1? ( dev-lang/python:3.1 )
31 > > python_abis_3.2? ( dev-lang/python:3.2 )
32 > > python_abis_2.5-jython? ( dev-java/jython:2.5 )
33 >
34 > And we could use simply '*' instead. Similarly to what we use
35 > in PYTHON_DEPEND now. That wouldn't be valid in *DEPEND as well.
36
37 '*' in range of versions has different meaning. Ranges of versions in ebuilds NOT supporting
38 installation for multiple Python ABIs still need to be explicitly included. In these ebuilds,
39 "<<" and ">>" indicate where characters of range of versions start and end.
40
41 Example:
42 # Dependency on any version of Python when "A" and "B" USE flags are enabled.
43 # PYTHON_DEPEND in EAPI <=3 doesn't allow to specify such a condition.
44 PYTHON_DEPEND="A? ( B? ( <<*>> ) )"
45
46 --
47 Arfrever Frehtes Taifersar Arahesis

Attachments

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