Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-python@l.g.o
Subject: Re: [gentoo-python] [PATCH] Support -A / --ABIs-patterns option in python_mod_optimize() and python_mod_cleanup()
Date: Thu, 29 Dec 2011 13:50:18
Message-Id: 4EFC7013.70508@gentoo.org
In Reply to: Re: [gentoo-python] [PATCH] Support -A / --ABIs-patterns option in python_mod_optimize() and python_mod_cleanup() by "Michał Górny"
On 12/29/2011 08:41 AM, Michał Górny wrote:
> On Thu, 29 Dec 2011 08:08:26 -0500 > Mike Gilbert <floppym@g.o> wrote: > >> 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*. > > Could you paste some example on how it is supposed to be used? >
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 }

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies