[Distutils] Creating rpm's for multiple python versions?
Phil Schwartz
phil_schwartz at users.sourceforge.net
Fri Jun 13 23:36:53 CEST 2008
I have a Fedora Core 7 development server that has python2.3, python2.4 and python2.5 installed. I'd like to build rpm's of my application for each
of these versions of python.
Python2.5 (/usr/bin/python, /usr/bin/python2, /usr/bin/python2.5) is the default version but the others are available from /usr/bin/python2.3 and
/usr/local/bin/python2.4 (both /usr/bin and /usr/local/bin are in my $PATH).
I've tried the following:
python2.3 setup.py bdist_rpm --python python2.3 \
--release python2.3 --binary-only
python2.4 setup.py bdist_rpm --python python2.4 \
--release python2.4 --binary-only
python2.5 setup.py bdist_rpm --python python2.5 \
--release python2.5 --binary-only
All of the commands complete successfully, however, upon examining the generated dist/ rpm's for 2.3 and 2.4 I've noticed that the "site-packages"
files are all relative the python2.5. That is, for the 2.3 rpm, there are files that contain the path "/usr/lib/python2.5/site-packages/...".
How can I force the rpm's to include the proper site-packages path (for python2.3 that would be "/usr/lib/python2.3/site-packages/")?
Thanks for any info,
Phil
More information about the Distutils-SIG
mailing list