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 1K1nWZ-0004nr-Ha for garchives@archives.gentoo.org; Thu, 29 May 2008 19:10:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94919E0387; Thu, 29 May 2008 19:10:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 87261E03EE; Thu, 29 May 2008 18:57:01 +0000 (UTC) Received: from trippin (unknown [81.215.208.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 44EF067419; Thu, 29 May 2008 18:57:00 +0000 (UTC) Date: Thu, 29 May 2008 21:56:44 +0300 From: Ali Polatel To: gentoo-dev-announce@lists.gentoo.org Cc: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev-announce] Recent changes wrt python.eclass Message-ID: <20080529185644.GB4994@trippin> Mail-Followup-To: gentoo-dev-announce@lists.gentoo.org, gentoo-dev@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo development announcement list X-BeenThere: gentoo-dev-announce@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0ntfKIWw70PvrIHh" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: a94f5860-c2ab-45ac-8c89-da85e8320797 X-Archives-Hash: e268e7a9874241fb571b917c7de03be7 --0ntfKIWw70PvrIHh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi people, All python_mod_* functions are now ROOT aware. I've also modified them to die if they aren't run in expected phases. Also I plan to make byte compiling functions print a warning when *.py{c,o} are installed under /usr/share which is a FHS violation. The tree and python developer's guide are updated to reflect the changes. As a last thing, I want to give some usage notes here so it's clear for everyone. * If your package uses distutils.eclass, generally you have nothing to worry about. By default it'll byte compile python modules under /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}. If your package installs a directory with a name other than ${PN} set PYTHON_MODNAME to the name of directory. * python_version should only be called if you need any of PYVER* variables. If your package only uses python.eclass - and not distutils.eclass, you need to call it when you want to use $python too. ( Note: Right now python_version is buggy wrt ROOT. This is the next thing I'm going to fix.) * Don't call python_mod_cleanup with PYVER like: Wrong: python_mod_cleanup \ /usr/$(get_libdir)/python${PYVER}/site-packages/$PN =20 This is wrong because the python version may change in the meantime. Instead use: python_mod_cleanup \ /usr/$(get_libdir)/python*/site-packages/$PN =20 python_mod_cleanup has a safe default so you can usually avoid passing any arguments. These are important stuff I can remember by the time I'm writing this mail. Python devguide will be updated with these useful information soon. So if anything is not clear and/or you have any questions feel free to bug/poke/stab me :-) --=20 Regards, Ali Polatel --0ntfKIWw70PvrIHh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkg+/GwACgkQQU4yORhF8iDdhgCeJy9zwB1ppwSMV00BGBsyh+nL 1UsAoKH8/CJbSpeD40muCRVr8iDtQGkC =4Jhb -----END PGP SIGNATURE----- --0ntfKIWw70PvrIHh-- -- gentoo-dev-announce@lists.gentoo.org mailing list