No matter what I try, I cannot do this. I'm on Centos 5.6 x86_64
python setup.py bdist_rmp gives me syntax error:
[root@localhost Python-2.7.3]# python setup.py bdist_rpm File "setup.py", line 361 with open(tmpfile) as fp:
checkinstall python setup.py install outputs the same syntax error as above.
checkinstall make install and has a lot of
ignoring ... statements in the stdout and the final RPM doesn't have most of files.
4 Using this shell script I can get python installed and build the RPM package with
python setup.py bdist_rpm method, however, the python 2.7 package will require python 2.7 as it's dependency.
EDIT: Actually, no, the #4 doesn't work either.
I tired different
./configure --prefix values, none of them made any difference.
I've read many options how to install python on Centos, but 99% of suggesting using plain 'make install' which I need to avoid.
Thanks in advance.
I was able to package it with this command:
checkinstall --fstrans=no --install=no --pkgname=python --pkgversion "2.7.3" --default
However, when I try to install it with
rpm -i I get this:
error: Failed dependencies: libtcl8.4.so()(64bit) is needed by python-2.7.3-1.x86_64 libtk8.4.so()(64bit) is needed by python-2.7.3-1.x86_64 python < 2.4.3-32.el5 conflicts with python-libs-2.4.3-44.el5.x86_64
The missing dependency are understandable, however it's one obvious what's in conflict and how to resolve it.