Linux RPMs for Python 2.4

<h1>Linux RPMs for Python 2.4</h1>

<p>Except where noted, these RPMs are made available by Sean Reifschneider (<a href="mailto:jafo-rpms@tummy.com">jafo-rpms@tummy.com</a>).

<h3>Having Problems?</h3>

If you are having problems, please see the <a href="#FAQ">RPM Frequently Asked Questions</a> section at the end of this document for possible solutions.

<h3>RPMs For Other Platforms</h3>

For platforms in which binaries aren't available here, you can easily build binary RPMs directly from the Python SRPM. Simply download one of the .src.rpm files below, and run "rpmbuild --rebuild python-&lt;version&gt;.src.rpm". Note toward the end of the output, the lines starting with "Wrote:" indicate where the binary RPMs were written.

<p /> The benefit of building binary RPMs in this way is that they are built using exactly the set of libraries and versions of packages that you have installed on your system. Because the SRPMs encompass all the steps required to build binary RPMs, it is a "fire and forget" process -- the simplest source build ever.

<h3>Download</h3>

<p><ul><li><b>Signature:</b>

<ul>

<li>Many of the following packages were signed with the GPG key in <a href="/ftp/python/2.4/rpms/KRUD-GPG-KEY">KRUD-GPG-KEY</a>

</ul>

<li><b>Yum:</b>

<ul>

<li />A yum repository is available for your convenience. For Fedora Core
3, create "/etc/yum.repos.d/python24.repo" with the following lines:

<pre>[python24] name=Fedora Core $releasever - $basearch - Python 2.4 baseurl=http://www.python.org/ftp/python/2.4/rpms/fedora-$releasever/ enabled=1 gpgcheck=1</pre>

<li />Add the <a href="http://www.tummy.com/Products/krud/">KRUD</a> GPG key by running: "rpm --import http://www.python.org/ftp/python/2.4/rpms/KRUD-GPG-KEY"

<li />Install Python 2.4 by running: "yum install python2.4". Note that this will only install the base RPM, list "python2.4-devel" or other packages to install them as well.

</ul>

<li><b>Source:</b>

<ul>

<li /><a href="/ftp/python/2.4/rpms/python2.4-2.4-1pydotorg.src.rpm">python2.4-2.4-1pydotorg.src.rpm</a> (Fedora Core 3 Source RPM, 7839258 bytes)

</ul>

<li /><b>Binaries for Fedora Core 3 (and similar):</b>

<ul>

<li /><a href="/ftp/python/2.4/rpms/fedora-3/python2.4-2.4-1pydotorg.i386.rpm">python2.4-2.4-1pydotorg.i386.rpm</a> (Fedora Core 3 base RPM, 8064671 bytes) <li /><a href="/ftp/python/2.4/rpms/fedora-3/python2.4-devel-2.4-1pydotorg.i386.rpm">python2.4-devel-2.4-1pydotorg.i386.rpm</a> (Fedora Core 3 development RPM, 711722 bytes) <li /><a href="/ftp/python/2.4/rpms/fedora-3/python2.4-tkinter-2.4-1pydotorg.i386.rpm">python2.4-tkinter-2.4-1pydotorg.i386.rpm</a> (Fedora Core 3 Tk GUI RPM, 285655 bytes) <li /><a href="/ftp/python/2.4/rpms/fedora-3/python2.4-tools-2.4-1pydotorg.i386.rpm">python2.4-tools-2.4-1pydotorg.i386.rpm</a> (Fedora Core 3 tools RPM, 753428 bytes)

</ul>

<li /><b>Binaries for Mandrake 9.2 (and similar, provided by Fabien Wahl):</b>

<ul>

<li /><a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-2.4-1pydotorg.i586.rpm">python2.4-2.4-1pydotorg.i586.rpm</a> (Fedora Core 3 base RPM, 7359837 bytes) <li /><a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-devel-2.4-1pydotorg.i586.rpm">python2.4-devel-2.4-1pydotorg.i586.rpm</a> (Fedora Core 3 development RPM, 3184990 bytes) <li /><a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-docs-2.4-1pydotorg.i586.rpm">python2.4-docs-2.4-1pydotorg.i586.rpm</a> (Fedora Core 3 HTML documentation RPM, 2076688 bytes) <li /><a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-tkinter-2.4-1pydotorg.i586.rpm">python2.4-tkinter-2.4-1pydotorg.i586.rpm</a> (Fedora Core 3 Tk GUI RPM, 263661 bytes) <li /><a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-tools-2.4-1pydotorg.i586.rpm">python2.4-tools-2.4-1pydotorg.i586.rpm</a> (Fedora Core 3 tools RPM, 746145 bytes)

</ul> </ul>

<h3>Packages of Python Tools</h3>

<p>Packages of other Python libraries have been made available by symbiont at <a href="http://python.org/pyvault/">http://python.org/pyvault/</a>.

<h3>Files, <a href="../md5sum.py">MD5</a> checksums and sizes</h3>

<pre>
<b>Based on python.org SRPM:</b>
<b>Source:</b>
e2d04732c850ed291ab4d57cd9a029de <a href="/ftp/python/2.4/rpms/python2.4-2.4-1pydotorg.src.rpm">python2.4-2.4-1pydotorg.src.rpm</a> (7839258 bytes)
<b>Fedora Core 3 Binaries:</b>
eb548833ba525bd4f8c296759f8894c8 <a href="/ftp/python/2.4/rpms/fedora-3/python2.4-2.4-1pydotorg.i386.rpm">python2.4-2.4-1pydotorg.i386.rpm</a> (8064671 bytes) 89df0a54426cbd856aa2836f327c977f <a href="/ftp/python/2.4/rpms/fedora-3/python2.4-devel-2.4-1pydotorg.i386.rpm">python2.4-devel-2.4-1pydotorg.i386.rpm</a> (711722 bytes) c59c0703d6fe32934a6d57e637c3f05c <a href="/ftp/python/2.4/rpms/fedora-3/python2.4-tkinter-2.4-1pydotorg.i386.rpm">python2.4-tkinter-2.4-1pydotorg.i386.rpm</a> (285655 bytes) f5935c47afde4bd37512032f5168920e <a href="/ftp/python/2.4/rpms/fedora-3/python2.4-tools-2.4-1pydotorg.i386.rpm">python2.4-tools-2.4-1pydotorg.i386.rpm</a> (753428 bytes)
<b>Mandrake 9.2 Binaries (provided by Fabien Wahl):</b>
3bb053a3d166b9377ad7c2e1094ed61f <a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-2.4-1pydotorg.i586.rpm">python2.4-2.4-1pydotorg.i586.rpm</a> (7359837 bytes) 9b96bcd70f9c922879af85834507977c <a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-devel-2.4-1pydotorg.i586.rpm">python2.4-devel-2.4-1pydotorg.i586.rpm</a> (3184990 bytes) 0d36672858c93703612ff2fb06b2ebea <a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-docs-2.4-1pydotorg.i586.rpm">python2.4-docs-2.4-1pydotorg.i586.rpm</a> (2076688 bytes) 90f2cc1137b23c033c3d56266c042edb <a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-tkinter-2.4-1pydotorg.i586.rpm">python2.4-tkinter-2.4-1pydotorg.i586.rpm</a> (263661 bytes) 32beacdc724ff2480156823876c4e223 <a href="/ftp/python/2.4/rpms/mandrake-9.2/python2.4-tools-2.4-1pydotorg.i586.rpm">python2.4-tools-2.4-1pydotorg.i586.rpm</a> (746145 bytes)

</pre>

<h3><a name="FAQ"></a>RPM Frequently Asked Questions</h3>

<ul>
<li />Q) When running "rpm -ba", "rpm -ta" or "rpm --rebuild" I get
the error "-ba: unknown option" or "--rebuild: unknown option" or "-ta: unknown option".
<li />A) With the Red Hat 8.0 release, the building options were removed
from the "rpm" command. Use the "rpmbuild" command instead ("rpmbuild --rebuild python2.4-2.4b1-1pydotorg.src.rpm").

<hr /> <li />Q) I'm getting the "-ba: unknown option" when trying to build RPMs

System Message: ERROR/3 (<string>, line 131)

Unexpected indentation.
using distutils "python setup.py bdist_rpm".

System Message: WARNING/2 (<string>, line 132)

Block quote ends without a blank line; unexpected unindent.
<li />A) As noted above, Red Hat broke the "build" functionality out of
the base "rpm" command with the 8.0 release. Unfortunately, they didn't patch their python RPM to account for this, and they don't appear to be planning to release any errata to fix this. If you upgrade to the 2.2.2-7 or newer RPMs on this page, distutils should work. Note that this seems to be fixed in the Red Hat 9 release (which uses Python 2.2.2 and has a patched distutils).

<hr /> <li />Q) When trying to build RPMs, I get "rpmbuild: command not found". <li />A) The "rpmbuild" command is part of a separate RPM named "rpm-build".

System Message: ERROR/3 (<string>, line 143)

Unexpected indentation.
You will need to install this package before you can build RPMs.

<hr /> <li />Q) Is it safe to install these RPMs on a Red Hat system? Will

System Message: ERROR/3 (<string>, line 147)

Unexpected indentation.
they over-write the system python and cause problems with other Red Hat applications that expect a different version of Python?

System Message: WARNING/2 (<string>, line 149)

Block quote ends without a blank line; unexpected unindent.
<li />A) The RPMs that start with "python2.4" are built to not interfere
with the system Python. They install as "/usr/bin/python2.4" and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number. <p /> To invoke the interpreter with these packages, you will explicitly have to run "python2.4". Note that all Python RPMs provided by Python.org and Red Hat provide a "/usr/bin/python2.4" (or similar, with major/minor number), even if they also provide "/usr/bin/python". So, yes, it should be safe. <p /> Note that you may need to build and install a second copy of any packages which you need access to with the supplemental version of Python. You can build packages of these files for the Python 2.4 interpreters for packages which use Distutils, by using the command "python2.4 setup.py bdist_rpm".

<hr /> <li />Q) How do I build a version of these RPMs which will install as

System Message: ERROR/3 (<string>, line 169)

Unexpected indentation.
"/usr/bin/python".

System Message: WARNING/2 (<string>, line 170)

Block quote ends without a blank line; unexpected unindent.
<li />A) First of all, realize that you are likely to break many Red Hat
provided programs which rely on having a version of Python with the same major/minor version as that which was shipped. Also, any additional packages which were installed will not be available for the new version, you will probably have to rebuild the packages from source or Source RPM. <p /> You can tweek several settings in the built RPMs by modifying the SPEC file that builds the RPMs. To do this, download the .src.rpm release and install it as you normally would an RPM package. This will install the source and the build control file ("SPEC" file). The .spec file is probably installed in "/usr/src/redhat/SPECS". <p /> Edit the .spec file and change the "config_binsuffix" line to "none". Build new RPMs with "rpmbuild -ba python.spec" (where "python.spec" is the name of the .spec file you edited). At the end of this process, you should be presented with several lines saying "Wrote". These lines specify where the binary RPMs were saved. You can then install these packages.

<hr /> <li />Q) I'm trying to build the RPMS, but I get:

<pre>RPM build errors:
File not found by glob:
/var/tmp/python2.4-2.4-root/usr/lib/python2.4/lib-dynload/_tkinter.so*</pre>
<li />A) You need to have the Tk development package installed. This
package is usually called "tk-devel", and can be obtained from the same place that you normally find packages for your system. You may also need to install the "tcl-devel" package, if your distribution includes one.

<hr /> <li />Q) When I try to build the RPM, I get:

System Message: WARNING/2 (<string>, line 203)

Definition list ends without a blank line; unexpected unindent.

<pre>myhost$ rpmbuild -rebuild python2.4-2.4-2pydotorg.src.rpm rpmbuild: arguments to --root (-r) must begin with a / myhost$ </pre>

System Message: ERROR/3 (<string>, line 206)

Unexpected indentation.
<li />A) The option to rpmbuild is not "-rebuild", it's "--rebuild", with two hyphens (-) instead of one. The above command runs "rpmbuild" with the "ebuild" argument to the "-r" option, as the error message above mentions. The second hyphen is not optional. Perhaps you need to change your web-browser to use a font that makes "-" and "--" more distinctive? :-)
<!--
<hr /> <li />Q) <li />A)

System Message: WARNING/2 (<string>, line 217)

Definition list ends without a blank line; unexpected unindent.

-->

</ul>

<!-- extra space so that the in-document link works properly --> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />

Notice: While Javascript is not essential for this website, your interaction with the content will be limited. Please turn Javascript on for the full experience.