Creating rpm's for multiple python versions?
![](https://secure.gravatar.com/avatar/7a4dbe9090a338033a750218546ab290.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/2343ae368d3241278581ce6c87f62a25.jpg?s=120&d=mm&r=g)
On Fri, 2008-06-13 at 14:36 -0700, Phil Schwartz wrote:
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.
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/")?
You may want to consider reading Fedora's Python packaging guidelines[1]. [1] http://fedoraproject.org/wiki/Packaging/Python -- Ignacio Vazquez-Abrams <ivazqueznet@gmail.com> PLEASE don't CC me; I'm already subscribed
participants (2)
-
Ignacio Vazquez-Abrams
-
Phil Schwartz