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"
1 On 12/29/2011 08:41 AM, Michał Górny wrote:
2 > On Thu, 29 Dec 2011 08:08:26 -0500
3 > Mike Gilbert <floppym@g.o> wrote:
4 >
5 >> This patch allows python_mod_optimize to be used in cases where a
6 >> different set of python modules is installed depending on the python
7 >> abi.
8 >>
9 >> For example, dev-python/feedparse-5.1 (not yet in the tree) installs
10 >> the _feedparser_sgmllib.py module only in python-3*.
11 >
12 > Could you paste some example on how it is supposed to be used?
13 >
14
15 Sure. Borrowed from feedparser-5.1.ebuild in Progress:
16
17 pkg_postinst() {
18 python_mod_optimize -A "2.*" feedparser.py
19 python_mod_optimize -A "3.*" feedparser.py _feedparser_sgmllib.py
20 }
21
22 pkg_postrm() {
23 python_mod_cleanup -A "2.*" feedparser.py
24 python_mod_cleanup -A "3.*" feedparser.py _feedparser_sgmllib.py
25 }

Attachments

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

Replies