Éric Araujo added the comment:
To build Python itself you need to use the Makefile and the
Misc/RPM/python-2.7.spec file. The doc you’re referring to talks about
building rpm packages for Python libraries, not CPython itself.
--
nosy: +eric.araujo
Sean Carolan added the comment:
Éric Araujo, if that is the case then why does it build what looks like a
*.spec file for Python itself?
[scarolan@titania:~/Python-2.7.3]$ head -10
./build/bdist.linux-x86_64/rpm/SPECS/Python.spec
%define name Python
%define version 2.7.3
%define
Éric Araujo added the comment:
Sorry, I don’t understand the question.
The point still stands: one should not use setup.py build_rpm to build an RPM
for CPython. Please read Misc/RPM/README.
--
___
Python tracker rep...@bugs.python.org
Sean Carolan added the comment:
Ok, thanks for clearing that up. Maybe the documentation could be updated to
explicitly state this to avoid confusion, eg:
NOTE: You cannot use setup.py to build a Python RPM. It is only for building
Python modules.
--
New submission from Sean Carolan:
I'm attempting to build a Python 2.7.3 RPM but the build command from the
documentation fails. My platform is RHEL 5.9, x86_64
http://docs.python.org/2/distutils/builtdist.html#creating-rpm-packages
Steps to reproduce:
1. Download latest Python tarball to