<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Greetings Toshio,<div><br></div><div>It is possible to byte compile both Python 2.4 and Python 2.6 packages within the same SPEC, </div><div>please have a look at bug:</div><div><br></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=700567">https://bugzilla.redhat.com/show_bug.cgi?id=700567</a></div><div><br></div><div>The line that is important is "<span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; ">%global __os_install_post %__multiple_python_os_install_post"<br></span>

<br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>---</div><div>Jeffrey Ness</div><div>Linux System Engineer</div><div><span class="Apple-style-span" style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; ">IT Operations</span> [Development]</div><div>Rackspace Hosting <span class="Apple-style-span" style="font-family: monospace; ">& IUS Community</span></div></div></span></div></span></div>
</div>
<br><div><div>On Sep 13, 2011, at 7:15 AM, Steve Traylen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br><br>On Tuesday, September 13, 2011, Toshio Kuratomi <<a href="mailto:a.badger@gmail.com">a.badger@gmail.com</a>> wrote:<br>> I was working on a python-pygments/python26-pygments bug today and found<br>> that the byte compilation of the packages was... wrong.  Changing various<br>
> setings to do with the automatic byte compilation of python modules to byte<br>> code, I could either get everything compiled with python-2.6 or everything<br>> compiled with python-2.4; I could not get the python26 subpackage compiled<br>
> with python-2.6 and the python 2.4 portion compiled with python-2.4.<br>><br><br>You have to do the byte compiling fairly manually in this case of py26 in the<br>same package.<br><br>I believe that Python_pbs is for instance correct but I can't verify myself at moment.<br>
<br><a href="http://pkgs.fedoraproject.org/gitweb/?p=python-pbs.git;a=blob;f=python-pbs.spec;h=441b3d7e5befce2144b54436cedfdb60588e1ce8;hb=f1573df43d2ea04000f9c42b76fb0b4e4c5bb072">http://pkgs.fedoraproject.org/gitweb/?p=python-pbs.git;a=blob;f=python-pbs.spec;h=441b3d7e5befce2144b54436cedfdb60588e1ce8;hb=f1573df43d2ea04000f9c42b76fb0b4e4c5bb072</a><br>
<br>Steve.<br><br><br>> What other packages are there in EPEL that are using the subpackage approach<br>> to build both for python-2.4 and python26?  Could maintainers take a moment<br>> to check whether the byte code in both the main python-* and the python26-*<br>
> packages are correctly byte compiled?  (I checked by running Fedora-14's<br>> rpmlint on the packages.  It can detect incorrect byte code compilation for<br>> python modules (those in /use/lib/pythonX.Y/site-packages)),<br>
><br>> If you find that your package is not correctly byte compiled, can you<br>> mention it here so that we know how many packages are affected?  If your<br>> package *is* correcttly byte compiled, can you mention it here, perhaps with<br>
> the spec file so that we can figure out if it's even possible to do this<br>> correctly?<br>><br>> Thanks,<br>> Toshio<br>><br><br>-- <br>Steve Traylen<br><br>
_______________________________________________<br>epel-devel-list mailing list<br><a href="mailto:epel-devel-list@redhat.com">epel-devel-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/epel-devel-list">https://www.redhat.com/mailman/listinfo/epel-devel-list</a><br></blockquote></div><br></div></body></html>