[Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

Sean Carolan scarolan at gmail.com
Wed Mar 27 14:05:27 CET 2013


> But, where did you get the idea that you could build Python RPMs using
> $python setup.py bdist_rpm ? I thought that was only limited to
> building RPMs for python packages (including extensions), but not the
> Python interpreter itself. Please correct me if i am wrong.
>

Ok, so it's only for module distributions?  I assumed it could package
Python itself as well, because it creates a *.spec file that reads like
this:

%define name Python
%define version 2.7.3
%define unmangled_version 2.7.3
%define release 1

Summary: A high-level object-oriented programming language


> Okay, here is something for you to try in the meantime. Download the
> Python 2.7 SRPM (source RPM) from
> http://koji.fedoraproject.org/koji/packageinfo?packageID=130. May be
> the F17 version.
> Extract it to get the source files, patches and the SPEC file.
>

Thank you, I will try this today.  In the meantime I have started a thread
on the "distutils" mailing list, so as not to spam "Tutor" with my build
woes.

regards,

Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130327/32a13abc/attachment.html>


More information about the Tutor mailing list