public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] python_need_rebuild
@ 2008-10-27  1:10 Ali Polatel
  2008-10-27 19:14 ` [gentoo-dev] python_need_rebuild Christian Faulhammer
  0 siblings, 1 reply; 3+ messages in thread
From: Ali Polatel @ 2008-10-27  1:10 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]

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 #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-27 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27  1:10 [gentoo-dev] python_need_rebuild Ali Polatel
2008-10-27 19:14 ` [gentoo-dev] python_need_rebuild Christian Faulhammer
2008-10-27 19:46   ` Ali Polatel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox