$ sudo port installed
does not include python in the list returned, so I assume I am using
the OS version.
$ which python
/usr/bin/python
and,
$ python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()"
/Library/Python/2.5/site-packages
I have been symlinking into /Library/Python/2.5/site-packages.
I have found the *other* site-packages directory, it is;
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages
but there is only a partial django directory in there;
django/conf
django/contrib
Ok, so I have removed MacPorts following the instructions in the FAQ.
I have installed the testhandler and here are the results;
General information
Apache version Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7l DAV/2
mod_python/3.3.1 Python/2.5.1
Apache threaded MPM No (single thread MPM)
Apache forked MPM Yes, maximum 256 processes
Apache server root /usr
Apache document root /Library/WebServer/Documents
Apache error log /private/var/log/apache2/error_log (view last 100
lines)
Python sys.version 2.5.1 (r251:54863, Oct 5 2007, 21:08:09) [GCC 4.0.1
(Apple Inc. build 5465)]
Python sys.path
/Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-
i386.egg
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python25.zip
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/
python
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
lib-dynload
/Library/Python/2.5/site-packages
/Library/Python/2.5/site-packages/PIL
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/
python/PyObjC
Python interpreter name main_interpreter
mod_python.publisher available Yes
mod_python.psp available No
which still works without MacPorts.
And;
$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django.core.handlers.modpython
>>>
Looks like the same Python from the command line as from within
mod_python, and yet the command line interpreter has no problem
finding django.core.handlers.modpython !
Still hoping I can find a way to symlink instead of installing every
svn update :-)
On Dec 5, 1:13 am, Graham Dumpleton <
Graham.Dumple...@gmail.com>