[gdal-dev] Installation prefix for Python bindings on MacOSX ?

Even Rouault even.rouault at spatialys.com
Sun Sep 20 08:33:49 PDT 2015


Le dimanche 20 septembre 2015 17:24:18, William Kyngesburye a écrit :
> /Library/Python/[version]/site-packages is the standard user path for OS X.
>  /usr/lib is not in the python path.  Even if you add /usr/lib to the
> Travis setup, the installation will still be broken for general use.

ok, thanks for the feedback William. So I guess we have to figure how to revert 
to the old behaviour on OS X then ? Any idea ? The changeset is 
https://trac.osgeo.org/gdal/changeset/30564

> 
> On Sep 20, 2015, at 10:09 AM, Even Rouault <even.rouault at spatialys.com> 
wrote:
> > Hi,
> > 
> > Antonio has contributed a fix in https://trac.osgeo.org/gdal/ticket/4563
> > to make the Python bindings honour the installation prefix.
> > 
> > A side effect of this is that now on the MacOsX Travis instance, they are
> > installed in /usr/lib/python2.7/site-packages whereas previously they
> > were installed in /Library/Python/2.7/site-packages
> > But it appears that they are not found automatically when in
> > /usr/lib/python2.7/site-packages. Is it expected ? Should we define
> > PYTHONPATH to /usr/lib/python2.7/site-packages in thre Travis script (
> > https://github.com/rouault/gdal_coverage/blob/trunk_travis_macosx/.travis
> > .yml )
> > 
> > Before change:
> > https://travis-ci.org/rouault/gdal_coverage/builds/81193480 New
> > behaviour: ​https://travis-ci.org/rouault/gdal_coverage/builds/81242249
> > 
> > Even
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> First Pogril: Why is life like sticking your head in a bucket filled with
> hyena offal? Second Pogril: I don't know.  Why IS life like sticking your
> head in a bucket filled with hyena offal? First Pogril: I don't know
> either.  Wretched, isn't it?
> 
> -HitchHiker's Guide to the Galaxy

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list