Hi everyone,
Rebuilding python modules after a python upgrade is a pita. In addition
to that it's not easy to determine what needs to be rebuilt and what
not. We have even ended up keeping a manual list of packages in
python-updater.

To make this situation less ugly, i have added a new function called
python_need_rebuild to python.eclass. This is a simple functions that
exports an environment variable which marks that the package has to be
rebuilt after a python upgrade. This way python-updater can accurately
find out what needs to be rebuilt.

Packages using distutils_src_install don't need any modifications.  For
other packages I've opened a tracker bug¹. The usage is simple, just
call python_need_rebuild without arguments in src_install.

And be ready for faster and more accurate python upgrades :)

¹: https://bugs.gentoo.org/show_bug.cgi?id=244555

-- 
Regards,
Ali Polatel

Attachment: pgp2TZTlowWeD.pgp
Description: PGP signature

Reply via email to