1 |
I would like to suggest introduction of support for PYTHON_DEPEND variable, which |
2 |
would be a better replacement for NEED_PYTHON variable. NEED_PYTHON variable |
3 |
does not allow to specify that e.g. only versions of Python 2 are accepted. |
4 |
(Eventually PYTHON_DEPEND variable will have to be set only in ebuilds of packages |
5 |
not supporting installation for multiple versions of Python.) |
6 |
|
7 |
Suggested syntax: |
8 |
PYTHON_DEPEND="[USE_flag?] <X[:[Y][:[Z]]]> [X[:[Y][:[Z]]]]" |
9 |
<required_component>, [optional_component] |
10 |
X - Major version of Python ('2' or '3') or '*'. |
11 |
Y - Minimal version of Python in the form of ${major_version}.${minor_version}. |
12 |
Z - Maximal version of Python in the form of ${major_version}.${minor_version}. |
13 |
It will be probably very rarely used. |
14 |
|
15 |
Examples: |
16 |
PYTHON_DEPEND="2" |
17 |
Dependency on any version of Python 2. |
18 |
|
19 |
PYTHON_DEPEND="2:2.5" |
20 |
Dependency on Python 2.7, 2.6 or 2.5. |
21 |
|
22 |
PYTHON_DEPEND="*:2.6" |
23 |
Dependency on Python 3.2, 3.1, 3.0, 2.7 or 2.6. |
24 |
|
25 |
PYTHON_DEPEND="2:2.7 3:3.1" |
26 |
Dependency on Python 3.2, 3.1 or 2.7. |
27 |
|
28 |
PYTHON_DEPEND="2:2.5:2.6" |
29 |
Dependency on Python 2.6 or 2.5. |
30 |
|
31 |
PYTHON_DEPEND="2::2.6" |
32 |
Dependency on Python 2.6, 2.5 or 2.4. |
33 |
|
34 |
PYTHON_DEPEND="python? 2" |
35 |
Dependency on any version of Python 2 when "python" USE flag is enabled. |
36 |
|
37 |
-- |
38 |
Arfrever Frehtes Taifersar Arahesis |