Ticket #137 (assigned defect)

Opened 2 months ago

Last modified 7 weeks ago

Mapnik python bindings on OS 10.5 should not install in /System

Reported by: springmeyer Owned by: springmeyer
Priority: major Milestone: 1.0.0
Component: Scons Build Scripts Version: SVN Trunk
Severity: Critical Keywords: osx, site-packages, python
Cc: Patch Needs Improvement: no
Needs Docmentation: no Has Patch?: no
Design Decision Needed: yes

Description

The default site-packages directory that mapnik installs in is actually a symlink into /System folders, - which is non-standard and bad practice.

This is the location mapnik installs in:

/usr/lib/python2.5/site-packages/mapnik

and this location is actually in /System:

$ ls -l /usr/lib/python2.5
lrwxr-xr-x  1 root  wheel  75 Nov 15  2007 /usr/lib/python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5

I've not seen any other python packages installed in this location on OS 10.5.

The more standard location would be:

/Library/Python/2.5/site-packages

Which is also automatically on a vanilla OSX user's PYTHONPATH.

Attachments

mac_osx_python_site_packages_fix.diff (1.0 kB) - added by springmeyer 2 months ago.
Patch to allow mapnik to confirm to the mac osx site-packages standard install location

Change History

Changed 2 months ago by springmeyer

A fix should also deal with Ticket #48 at the same time, which is related to the PYTHON_PREFIX ( http://trac.mapnik.org/browser/trunk/SConstruct#L242) being determined by the sys.prefix.

Changed 2 months ago by springmeyer

Patch to allow mapnik to confirm to the mac osx site-packages standard install location

Changed 7 weeks ago by springmeyer

jbronn pointed out that this problem only happens with mapnik built with the leopard system python.

Changed 7 weeks ago by springmeyer

Changed 7 weeks ago by springmeyer

  • owner changed from artem to springmeyer

Changed 7 weeks ago by springmeyer

  • status changed from new to assigned
Note: See TracTickets for help on using tickets.