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

Sean Carolan scarolan at gmail.com
Tue Mar 26 20:04:19 CET 2013


>
> http://hg.python.org/cpython/file/d321885ff8f3/Lib/distutils/command/bdist_rpm.py#l23
>

No dice.

[scarolan at titania:~/Python-2.7.3]$ alias | grep python
alias python='/usr/local/bin/python2.7'

[scarolan at titania:~/Python-2.7.3]$ /usr/local/bin/python2.7 setup.py
bdist_rpm
error: pyconfig.h: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.14555 (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.14555 (%build)
error: command 'rpmbuild' failed with exit status 1

Has anyone on this list successfully built a python 2.7 RPM using this
command?
python2.7 setup.py bdist_rpm

If so, what was your secret?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130326/6c74e031/attachment.html>


More information about the Tutor mailing list