Menu

#20 packaging python 04 - allow python-binary to be overriden

pending-accepted
nobody
None
5
2012-02-29
2011-12-10
No

It is possible to have multiple python installations on a single
targe systems. This is well known for python2 / python3 to
exist in parallel. On EPEL5 (RHEL5/CentOs5) there exists
a python26 since the base distro only has python 2.4 so that
I had a requirement tom compile for that - and it does of
course install into a different lib target.

To allow for that one would not use --with-python but one
uses a $PYTHON variable - the distutils package of that python
installation will tell the library target location. In the EPEL
example its return value switches from /usr/lib64/python2.4
into /usr/lib64/python2.6

Patch is provided on top of packaging python 03 - use distutils lib(1)

Tested at https://build.opensuse.org/package/show?package=quickfix&project=home%3Aguidod%3Afixfast

P.S. - you could also kill the --with-python configure switch, just use
the distutils get_python_inc(1) call in confgure.in (not included in patch)

Discussion

  • Guido U. Draheim

     
  • Oren Miller

    Oren Miller - 2012-02-29
    • status: open --> pending-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.