Python packages with python26 subpackages

Toshio Kuratomi a.badger at gmail.com
Tue Sep 13 15:48:35 UTC 2011


On Tue, Sep 13, 2011 at 07:50:40AM -0500, Jeffrey Ness wrote:
> Greetings Toshio,
> 
> It is possible to byte compile both Python 2.4 and Python 2.6 packages within
> the same SPEC, 
> please have a look at bug:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=700567
> 
> The line that is important is "%global __os_install_post
> %__multiple_python_os_install_post"
> 
Excellent.  That not only works, it simplifies considerably the logic in the
python-pygments package.

One side note when looking at the proposed elixir spec: it's not using
a separate source/build directory for the python26 build.  So if there were
things that aren't bytecompiled (because the rpm byte compilation script is
run afterwards) and differ between the python-2.4 and python-2.6 builds
you'd get the wrong thing installed (I'm thinking compiled modules here but
there could be other things as well).

-Toshio "Who now updates the python26 page on the wiki with the recipe for
doing byte compilation"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/epel-devel-list/attachments/20110913/4c76d5bd/attachment.sig>


More information about the epel-devel-list mailing list