Jeremy Hylton | 355e2f2 | 2000-10-16 15:34:52 +0000 | [diff] [blame] | 1 | This directory contains support file used to build RPM releases of |
Guido van Rossum | 23105d5 | 2002-01-06 03:29:16 +0000 | [diff] [blame] | 2 | Python. Its contents are maintained by Sean Reifschneider |
| 3 | <jafo@tummy.com>. |
Jeremy Hylton | 355e2f2 | 2000-10-16 15:34:52 +0000 | [diff] [blame] | 4 | |
Anthony Baxter | fd95c3a | 2003-09-24 01:36:13 +0000 | [diff] [blame] | 5 | If you wish to build RPMs from the base Python release tar-file, note |
| 6 | that you will have to download the |
| 7 | "doc/<version>/html-<version>.tar.bz2" |
| 8 | file from python.org and place it into your "SOURCES" directory for |
| 9 | the build to complete. This is the same directory that you place the |
| 10 | Python-2.3.1 release tar-file in. You can then use the ".spec" file in |
| 11 | this directory to build RPMs. |
Sean Reifscheider | 9aad7fe | 2010-11-07 21:26:53 +0000 | [diff] [blame] | 12 | |
| 13 | You may also wish to pursue RPMs provided by distribution makers to see if |
| 14 | they have one suitable for your uses. If, for example, you just want a |
| 15 | slightly newer version of Python than what the distro provides, you could |
| 16 | pick up the closest SRPM your distro provides, and then modify it to |
| 17 | the newer version, and build that. It may be as simple as just changing |
| 18 | the "version" information in the spec file (or it may require fixing |
| 19 | patches). |
| 20 | |
| 21 | NOTE: I am *NOT* recommending just using the binary RPM, and never do an |
| 22 | install with "--force" or "--nodeps". |
| 23 | |
| 24 | Also worth pursuing may be newer versions provided by similar distros. For |
| 25 | example, a Python 3 SRPM from Fedora may be a good baseline to try building |
| 26 | on CentOS. |
| 27 | |
| 28 | Many newer SRPMs won't install on older distros because of format changes. |
Brian Curtin | ab19bd4 | 2010-11-07 22:09:05 +0000 | [diff] [blame] | 29 | You can manually extract these SRPMS with: |
Sean Reifscheider | 9aad7fe | 2010-11-07 21:26:53 +0000 | [diff] [blame] | 30 | |
| 31 | mkdir foo |
| 32 | cd foo |
| 33 | rpm2cpio <../python3-*.src.rpm | cpio -ivd |