From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RgGbg-00034i-RK for garchives@archives.gentoo.org; Thu, 29 Dec 2011 14:05:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18C3A21C162; Thu, 29 Dec 2011 14:05:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E0F8221C162 for ; Thu, 29 Dec 2011 14:05:17 +0000 (UTC) Received: from pomiocik.lan (178-37-171-191.adsl.inetia.pl [178.37.171.191]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 65B5C1B401F; Thu, 29 Dec 2011 14:05:16 +0000 (UTC) Date: Thu, 29 Dec 2011 15:06:21 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: Mike Gilbert Cc: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] [PATCH] Support -A / --ABIs-patterns option in python_mod_optimize() and python_mod_cleanup() Message-ID: <20111229150621.6d6583fd@pomiocik.lan> In-Reply-To: <4EFC7013.70508@gentoo.org> References: <4EFC664A.10105@gentoo.org> <20111229144151.5182583f@pomiocik.lan> <4EFC7013.70508@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/hax+cHJIVk9S7t4lDJXa+4i"; protocol="application/pgp-signature" X-Archives-Salt: a1d314fb-21b2-43dd-bd0b-75a3b9961c30 X-Archives-Hash: 39010420e46e65c49a33a1bdc3418df5 --Sig_/hax+cHJIVk9S7t4lDJXa+4i Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 29 Dec 2011 08:50:11 -0500 Mike Gilbert wrote: > On 12/29/2011 08:41 AM, Micha=C5=82 G=C3=B3rny wrote: > > On Thu, 29 Dec 2011 08:08:26 -0500 > > Mike Gilbert wrote: > >=20 > >> This patch allows python_mod_optimize to be used in cases where a > >> different set of python modules is installed depending on the > >> python abi. > >> > >> For example, dev-python/feedparse-5.1 (not yet in the tree) > >> installs the _feedparser_sgmllib.py module only in python-3*. > >=20 > > Could you paste some example on how it is supposed to be used? > >=20 >=20 > Sure. Borrowed from feedparser-5.1.ebuild in Progress: >=20 > pkg_postinst() { > python_mod_optimize -A "2.*" feedparser.py > python_mod_optimize -A "3.*" feedparser.py _feedparser_sgmllib.py > } >=20 > pkg_postrm() { > python_mod_cleanup -A "2.*" feedparser.py > python_mod_cleanup -A "3.*" feedparser.py _feedparser_sgmllib.py > } Ok, now that I see it, I think you're inventing a really big hammer to get rid of a single mosquito. On the other hand, I don't think I can think of a good per-ebuild way to handle this. I'd rather start by pinging upstream not to pollute global namespace and install a package instead; even if it supposed to contain __init__.py only. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/hax+cHJIVk9S7t4lDJXa+4i Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iJwEAQEIAAYFAk78c90ACgkQfXuS5UK5QB1DBwP/emDT6oaKafjBp5P2SBYQHPTC +DBQcrvfh4LkCA9kvz+dnPRuTo0xt9lTB3LUd2BZfUdxIreUxy/PjHC7auYLx6B6 SEG+CCDDP90YwSuSuJb3rUXflRlD4PYJw68Eielmh3g1RMfCErOajBLPY5uMp6vh KwWoJR00IHqKP5C1UwE= =M0qu -----END PGP SIGNATURE----- --Sig_/hax+cHJIVk9S7t4lDJXa+4i--