1 |
Hi everyone, |
2 |
Rebuilding python modules after a python upgrade is a pita. In addition |
3 |
to that it's not easy to determine what needs to be rebuilt and what |
4 |
not. We have even ended up keeping a manual list of packages in |
5 |
python-updater. |
6 |
|
7 |
To make this situation less ugly, i have added a new function called |
8 |
python_need_rebuild to python.eclass. This is a simple functions that |
9 |
exports an environment variable which marks that the package has to be |
10 |
rebuilt after a python upgrade. This way python-updater can accurately |
11 |
find out what needs to be rebuilt. |
12 |
|
13 |
Packages using distutils_src_install don't need any modifications. For |
14 |
other packages I've opened a tracker bug¹. The usage is simple, just |
15 |
call python_need_rebuild without arguments in src_install. |
16 |
|
17 |
And be ready for faster and more accurate python upgrades :) |
18 |
|
19 |
¹: https://bugs.gentoo.org/show_bug.cgi?id=244555 |
20 |
|
21 |
-- |
22 |
Regards, |
23 |
Ali Polatel |