From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KuGcm-0007M3-Td for garchives@archives.gentoo.org; Mon, 27 Oct 2008 01:10:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDFA7E03DB; Mon, 27 Oct 2008 01:10:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B77DAE03DB for ; Mon, 27 Oct 2008 01:10:28 +0000 (UTC) Received: from trippin (unknown [85.97.138.115]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 71039647D9 for ; Mon, 27 Oct 2008 01:10:26 +0000 (UTC) Date: Mon, 27 Oct 2008 03:10:18 +0200 From: Ali Polatel To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] python_need_rebuild Message-ID: <20081027011018.GA16513@trippin> Mail-Followup-To: gentoo-dev@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 99718606-7a75-42ce-9cb7-82b3ce21e5d3 X-Archives-Hash: e4898c6b7aa29bd7b4cd86fbc1acad68 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=B9. The usage is simple, just call python_need_rebuild without arguments in src_install. And be ready for faster and more accurate python upgrades :) =B9: https://bugs.gentoo.org/show_bug.cgi?id=3D244555 --=20 Regards, Ali Polatel --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkkFFPoACgkQQU4yORhF8iCwyQCfQ684qUlUlcDZxDRuummbqLKi IS8AoJerymknhU/3ziaUgVvRmUx7Loki =Colm -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--