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)