1 |
It is planned that ebuilds of Python 3.2 will automatically set Python 3.2 as main active |
2 |
version of Python. (Currently ebuilds of Python 3.1 do not automatically set Python 3.1 |
3 |
as main active version of Python.) Final release of Python 3.2 is currently scheduled on |
4 |
2010-12-11, so you have over 10 months for adjusting of your ebuilds. |
5 |
|
6 |
The following changes should be made in ebuilds of packages supporting only Python 2: |
7 |
- Dependency on Python 2 should be set correctly. You can specify it directly in |
8 |
{,R}DEPEND or use PYTHON_DEPEND. |
9 |
|
10 |
Example: |
11 |
PYTHON_DEPEND="2" |
12 |
|
13 |
inherit python |
14 |
|
15 |
- Miscellaneous actions should be executed with correct version of Python. |
16 |
|
17 |
- In ebuilds of packages supporting installation for multiple versions of Python, |
18 |
please remember to disable installation for all versions of Python 3. |
19 |
(Please do not use python_set_active_version() in ebuilds of these packages.) |
20 |
|
21 |
Example: |
22 |
RESTRICT_PYTHON_ABIS="3.*" |
23 |
|
24 |
- In ebuilds of packages not supporting installation for multiple versions of Python, |
25 |
set active version of Python using python_set_active_version(). |
26 |
(Please avoid passing precisely specified Python ABI to python_set_active_version().) |
27 |
|
28 |
Example: |
29 |
pkg_setup() { |
30 |
python_set_active_version 2 |
31 |
} |
32 |
|
33 |
(If given package currently cannot be installed for multiple versions of Python, |
34 |
but it is theoretically possible (e.g. this package installs .py files into |
35 |
/usr/lib/pythonX.Y/site-packages and does not install any non-versioned libraries |
36 |
into /usr/lib), then please try to adjust ebuilds of this package to allow |
37 |
installation for multiple versions of Python.) |
38 |
|
39 |
It is recommended to have set a version of Python 3 as main active version of Python |
40 |
during testing of these changes to ensure that no required change has been missed. |
41 |
|
42 |
I consider filing bugs for not adjusted packages after some months (e.g in summer). |
43 |
(Please note that these changes are not required before stabilization of Python 3.1, |
44 |
so stabilization of Python 3.1 will not be delayed.) |
45 |
|
46 |
-- |
47 |
Arfrever Frehtes Taifersar Arahesis |