Re: Mac OS X compile issue (selecting python2.5)

Graham Dumpleton <[email protected]> Sun, 13 Jun 2010 23:26:58 +1000
Newsgroups gmane.comp.python.mod_python
Message-ID <[email protected]>
On 12 June 2010 09:04, Patrick May <[email protected]> wrote:
> Hello,
> I have a python web application which requires python2.5. =A0I am attem=
pting
> to compile mod_python on Snow Leopard against the OS apache and the OS
> python2.5. =A0The steps I have taken are as follows:
> 1. checked out mod_python from svn
> =A0=A0$ svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python=
/trunk
> mod_python-svn
> 2. configured mod_python to use the Snow Leopard Apache and the Snow Le=
opard
> python2.5
> =A0=A0$ cd mod_python-svn
> =A0=A0$ ./configure --with-apxs=3D/usr/sbin/apxs --with-python=3D/usr/b=
in/python2.5
> 3. built mod_python
> =A0=A0$ make
> The resulting mod_python.so is linked against the 2.6 framework:
> =A0=A0$ otool -L src/mod_python.so
> =A0=A0src/mod_python.so:
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current versio=
n
> 125.0.1)
> /System/Library/Frameworks/Python.framework/Versions/2.6/Python
> (compatibility version 2.6.0, current version 2.6.1)
> This is essentially broken for my purposes. =A0If I continue the proces=
s and
> install, it becomes apparent that mod_python is indeed running the 2.6
> interpreter and my application does not run. =A0I have seen some conver=
sation
> about this issue, but those conversations did not appear productive.
> Is 2.5 simply not supported? =A0Is this a known bug on mac os x? =A0Are=
 there
> any suggestions for remedying the situation?

This is exactly the outstanding problem I mention in relation to MacOS X =
in:

  http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-be-officiall=
y.html

The question at this point is why must you use mod_python?

Graham