[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Python packages with python26 subpackages



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"

---
Jeffrey Ness
Linux System Engineer
IT Operations [Development]
Rackspace Hosting & IUS Community

On Sep 13, 2011, at 7:15 AM, Steve Traylen wrote:



On Tuesday, September 13, 2011, Toshio Kuratomi <a badger gmail com> wrote:
> I was working on a python-pygments/python26-pygments bug today and found
> that the byte compilation of the packages was... wrong.  Changing various
> setings to do with the automatic byte compilation of python modules to byte
> code, I could either get everything compiled with python-2.6 or everything
> compiled with python-2.4; I could not get the python26 subpackage compiled
> with python-2.6 and the python 2.4 portion compiled with python-2.4.
>

You have to do the byte compiling fairly manually in this case of py26 in the
same package.

I believe that Python_pbs is for instance correct but I can't verify myself at moment.

http://pkgs.fedoraproject.org/gitweb/?p=python-pbs.git;a=blob;f=python-pbs.spec;h=441b3d7e5befce2144b54436cedfdb60588e1ce8;hb=f1573df43d2ea04000f9c42b76fb0b4e4c5bb072

Steve.


> What other packages are there in EPEL that are using the subpackage approach
> to build both for python-2.4 and python26?  Could maintainers take a moment
> to check whether the byte code in both the main python-* and the python26-*
> packages are correctly byte compiled?  (I checked by running Fedora-14's
> rpmlint on the packages.  It can detect incorrect byte code compilation for
> python modules (those in /use/lib/pythonX.Y/site-packages)),
>
> If you find that your package is not correctly byte compiled, can you
> mention it here so that we know how many packages are affected?  If your
> package *is* correcttly byte compiled, can you mention it here, perhaps with
> the spec file so that we can figure out if it's even possible to do this
> correctly?
>
> Thanks,
> Toshio
>

--
Steve Traylen

_______________________________________________
epel-devel-list mailing list
epel-devel-list redhat com
https://www.redhat.com/mailman/listinfo/epel-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]