Mac OS X compile issue (selecting python2.5)

Patrick May <[email protected]> Fri, 11 Jun 2010 19:04:30 -0400
Newsgroups gmane.comp.python.mod_python
Message-ID <[email protected]>
--===============1860767408==
Content-Type: multipart/alternative; boundary=001485f92bdc8687920488c92aeb

--001485f92bdc8687920488c92aeb
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I have a python web application which requires python2.5.  I am attempting
to compile mod_python on Snow Leopard against the OS apache and the OS
python2.5.  The steps I have taken are as follows:

1. checked out mod_python from svn

  $ svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunkmod_python-svn

2. configured mod_python to use the Snow Leopard Apache and the Snow Leopard
python2.5

  $ cd mod_python-svn
  $ ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python2.5

3. built mod_python

  $ make

The resulting mod_python.so is linked against the 2.6 framework:

  $ otool -L src/mod_python.so
  src/mod_python.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
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.  If I continue the process and
install, it becomes apparent that mod_python is indeed running the 2.6
interpreter and my application does not run.  I have seen some conversation
about this issue, but those conversations did not appear productive.

Is 2.5 simply not supported?  Is this a known bug on mac os x?  Are there
any suggestions for remedying the situation?

Best,

Patrick

-- 
Patrick May
+1 (347) 232-5208

--001485f92bdc8687920488c92aeb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<div><br></div><div>I have a python web application which requires py=
thon2.5. =A0I am attempting to compile mod_python on Snow Leopard against t=
he OS apache and the OS python2.5. =A0The steps I have taken are as follows=
:</div>

<div><br></div><div>1. checked out mod_python from svn</div><div><br></div>=
<div>=A0=A0$ svn co <a href=3D"https://svn.apache.org/repos/asf/quetzalcoat=
l/mod_python/trunk">https://svn.apache.org/repos/asf/quetzalcoatl/mod_pytho=
n/trunk</a> mod_python-svn</div>

<div><br></div><div>2. configured mod_python to use the Snow Leopard Apache=
 and the Snow Leopard python2.5</div><div><br></div><div>=A0=A0$ cd mod_pyt=
hon-svn</div><div>=A0=A0$ ./configure --with-apxs=3D/usr/sbin/apxs --with-p=
ython=3D/usr/bin/python2.5</div>

<div><br></div><div>3. built mod_python</div><div><br></div><div>=A0=A0$ ma=
ke</div><div><br></div><div>The resulting mod_python.so is linked against t=
he 2.6 framework:</div><div><br></div><div><div>=A0=A0$ otool -L src/mod_py=
thon.so</div>

<div>=A0=A0src/mod_python.so:</div><div><span class=3D"Apple-tab-span" styl=
e=3D"white-space:pre">	</span>/usr/lib/libSystem.B.dylib (compatibility ver=
sion 1.0.0, current version 125.0.1)</div><div><span class=3D"Apple-tab-spa=
n" style=3D"white-space:pre">	</span>/System/Library/Frameworks/Python.fram=
ework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6=
.1)</div>

</div><div><br></div><div>This is essentially broken for my purposes. =A0If=
 I continue the process and install, it becomes apparent that mod_python is=
 indeed running the 2.6 interpreter and my application does not run. =A0I h=
ave seen some conversation about this issue, but those conversations did no=
t appear productive.</div>

<div><br></div><div>Is 2.5 simply not supported? =A0Is this a known bug on =
mac os x? =A0Are there any suggestions for remedying the situation?</div><d=
iv><br></div><div>Best,</div><div><br></div><div>Patrick</div><div><br></di=
v>

<div>-- <br>Patrick May<br>+1 (347) 232-5208<br><br>
</div>

--001485f92bdc8687920488c92aeb--

--===============1860767408==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python

--===============1860767408==--