Python26

From FedoraProject

Jump to: navigation, search

On EL5, the "system" python binary, /usr/bin/python is Python 2.4, and all add-on python packages are for the 2.4 syntax, and byte-compiled for 2.4.

EPEL5 provides a parallel-installable Python 2.6 stack. The core runtime is in the "python26" package, and there are a number of "python26-*" extension modules already in EPEL5.


Contents

Available Packages for EPEL5


Not Yet Available Packages for EPEL5

If you have interest towards some package, regardless are you pacakger or not, add it here if someone wants to package it.

Packaging Guidelines for EPEL5

Warning (medium size).png
This page is a draft only
It is still under construction and content may change. Do not rely on the information on this page.

--Dmalcolm 20:48, 2 March 2011 (UTC): some python packages are provided as part of the RHEL5 product. Others are add-ons provided as part of EPEL5.

If you want a python26 version of a package that's already in RHEL5, I suggest creating a separate src.rpm, and filing a review request for it. It may also be good to locate the equivalent "python-" package within Fedora and do the following:

to help both of you maintain your respective packages.

If you want a python26 version of a package that's in EPEL5, you should also make a separate src.rpm. There are several reasons that the separate src.rpm is preferable in EPEL vs using the same src.rpm and separate subpackages.

Byte compiling

In Fedora, rpm has a byte compilation script that makes sure that python modules in their respective python*sitearch and python*sitelib directories are byte compiled with the correct version of python. In RHEL5, the byte compilation script uses the system python (python-2.4) for everything. To make byte compilation work, you need to override the script that's being used like this:

%global __os_install_post %__multiple_python_os_install_post

TODO:

Python26 Bugs in Bugzilla

References