Hi Margherita, Il 06/05/2014 17:31, Margherita Di Leo ha scritto: > Hi, > > > On Tue, May 6, 2014 at 12:29 PM, Mike Toews <[email protected]> wrote: > >> >> >> Unfortunately this is a bug: http://trac.osgeo.org/gdal/ticket/4563 > > > Thank you for pointing me out. > >> >> >> There are a few workarounds, such as installing the Python bindings >> manually with the appropriate --prefix: >> $ cd swig/python >> $ python setup.py install --prefix=/to/where/you/want/it >> >> or edit swig/python/GNUmakefile (line 71): >> >> $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) >> > > Thanks for the workaround, but this doesn't seem to work for me, I'm > probably doing something wrong. It expects to > find /lib64/python2.6/site-packages/ inside the folder that I specify in > --prefix.. > >
Yes, the site-packages must already exist and should also be in the PYTHONPATH. Plesae try to apply the attached patch to gdal/swig/python/GNUmakefile and run the following commands from the gdal build directory mkdir -p $PREFIX/lib64/python2.6/site-packages env PYTHONPATH=$PREFIX/lib64/python2.6/site-packages:$PYTHONPATH make \ install of course you should set PREFIX according to your setup. ciao -- Antonio Valentino
diff --git a/gdal/swig/python/GNUmakefile b/gdal/swig/python/GNUmakefile index b4d5e90..b15bc93 100644 --- a/gdal/swig/python/GNUmakefile +++ b/gdal/swig/python/GNUmakefile @@ -67,11 +67,11 @@ egg: install: -ifeq ($(PY_HAVE_SETUPTOOLS),1) - $(PYTHON) setup.py install -else +#ifeq ($(PY_HAVE_SETUPTOOLS),1) +# $(PYTHON) setup.py install +#else $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) -endif +#endif for f in $(SCRIPTS) ; do $(INSTALL) ./scripts/$$f $(DESTDIR)$(INST_BIN) ; done
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
