Issue creating custom Python 2.7.3 RPM
Hello,
I'm in the process of creating a custom Python 2.7.3 rpm for a customer. I've configured it so that the rpm installs to /opt/python2.7.3, adds a new config file to /etc/ld.so.conf.d and symlinks the new python binary to /usr/bin/python2.7.3. So far this all works correctly which is great. However, I also need to install the setuptools egg file and configure it to install packages for 2.7.3 and not 2.4.3 which is what the OS relies on. I've attempted to add a second Source line (Source1) but it never seems to extract the file and place the egg file under BUILD. This causes rpmbuild to error out when it gets to the point to place the egg file under /tmp/ and install it using setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7.1. Please see below for my SPEC file. Code:
#--start constants-- -Kang |
Since you posted this in the Red Hat forum I'll assert it's about RHEL and in that case there's a couple of issues:
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
Quote:
Code:
#/tmp/eggs_install/* *BTW /etc/ld.so.conf.d/opt-python2.7.3.conf shouldn't be in the %files section either as you create it in %post as it won't show in either 'rpm -ql python-2.7.3|grep ld.so.conf.d/', 'rpm -Vv python-2.7.3' or 'rpm -qf /etc/ld.so.conf.d/opt-python2.7.3.conf'. Quote:
Quote:
|
All times are GMT -5. The time now is 02:20 AM. |