public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ali Polatel <hawking@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] python_need_rebuild
Date: Mon, 27 Oct 2008 03:10:18 +0200	[thread overview]
Message-ID: <20081027011018.GA16513@trippin> (raw)

[-- 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 --]

             reply	other threads:[~2008-10-27  1:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27  1:10 Ali Polatel [this message]
2008-10-27 19:14 ` [gentoo-dev] Re: python_need_rebuild Christian Faulhammer
2008-10-27 19:46   ` Ali Polatel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081027011018.GA16513@trippin \
    --to=hawking@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox