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 1RgGN8-0007O1-4C for garchives@archives.gentoo.org; Thu, 29 Dec 2011 13:50:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAF2821C071; Thu, 29 Dec 2011 13:50:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7808E21C071 for ; Thu, 29 Dec 2011 13:50:15 +0000 (UTC) Received: from [192.168.0.4] (d14-69-47-19.try.wideopenwest.com [69.14.19.47]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 97F7D1B401F; Thu, 29 Dec 2011 13:50:14 +0000 (UTC) Message-ID: <4EFC7013.70508@gentoo.org> Date: Thu, 29 Dec 2011 08:50:11 -0500 From: Mike Gilbert User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111116 Thunderbird/8.0 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 To: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= CC: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] [PATCH] Support -A / --ABIs-patterns option in python_mod_optimize() and python_mod_cleanup() References: <4EFC664A.10105@gentoo.org> <20111229144151.5182583f@pomiocik.lan> In-Reply-To: <20111229144151.5182583f@pomiocik.lan> X-Enigmail-Version: 1.3.3 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8084E9C5A9674405858DF60F" X-Archives-Salt: 1b5d3523-5db4-4beb-a4cb-82d50f779f4c X-Archives-Hash: c5873905b8051f3b418f90841cbf3b3f This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8084E9C5A9674405858DF60F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Sure. Borrowed from feedparser-5.1.ebuild in Progress: pkg_postinst() { python_mod_optimize -A "2.*" feedparser.py python_mod_optimize -A "3.*" feedparser.py _feedparser_sgmllib.py } pkg_postrm() { python_mod_cleanup -A "2.*" feedparser.py python_mod_cleanup -A "3.*" feedparser.py _feedparser_sgmllib.py } --------------enig8084E9C5A9674405858DF60F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iF4EAREIAAYFAk78cBMACgkQC77qH+pIQ6S/7wD/QASMx62ZtZrgM6+CwL0jnjHg +9X5c66iwOkccF0utT8A/2Fev1nTbaeAX2UpclySUuAOJqLLbdzcAt9ZDoSG+x6V =qOAd -----END PGP SIGNATURE----- --------------enig8084E9C5A9674405858DF60F--