Re: [gdal-dev] scripts/setdevenv.sh
On Thu, Apr 5, 2018 at 11:44 AM, Even Rouault wrote: > > Hi, > > This is something most people doing GDAL development, and not wanting to install each time they > build, have probably reinvented by themselves, so now master has a scripts/setdevenv.sh that > you can source to define PATH, LD_LIBRARY_PATH, GDAL_DATA and PYTHONPATH to point to the > non-installed directories. very useful, it makes testing local changes really easy, particularly for non-GDAL developers trying to contribute to GDAL. Thanks, Even! > > Referenced in https://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.md > > Only tested on Linux > > $ . scripts/setdevenv.sh > Setting PATH=/home/even/gdal/git/gdal/gdal/apps:/home/even/gdal/git/gdal/gdal/apps/.libs:/home/even/bin:/home/even/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > Setting LD_LIBRARY_PATH=/home/even/gdal/git/gdal/gdal:/home/even/gdal/git/gdal/gdal/.libs: > Setting GDAL_DATA=/home/even/gdal/git/gdal/gdal/data > Setting PYTHONPATH=/home/even/gdal/git/gdal/gdal/swig/python/build/lib.linux-x86_64-2.7: > > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] scripts/setdevenv.sh
Nice! Much more flexible than my sourceme-autotest.sh... export PATH=$HOME/src/gdal-schwehr/inst/bin:$PATH export PYTHONPATH=$HOME/src/gdal-schwehr/inst/lib/python2.7/site-packages export LD_LIBRARY_PATH=$HOME/src/gdal-schwehr/inst/lib export GDAL_DATA=$HOME/src/gdal-schwehr/inst/share/gdal On Thu, Apr 5, 2018 at 11:00 PM, Ben Elliston wrote: > This is handy, thanks, Even! > > Ben > ___ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev > -- -- http://schwehr.org ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] scripts/setdevenv.sh
This is handy, thanks, Even! Ben ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] scripts/setdevenv.sh
Hi, This is something most people doing GDAL development, and not wanting to install each time they build, have probably reinvented by themselves, so now master has a scripts/setdevenv.sh that you can source to define PATH, LD_LIBRARY_PATH, GDAL_DATA and PYTHONPATH to point to the non-installed directories. Referenced in https://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.md Only tested on Linux $ . scripts/setdevenv.sh Setting PATH=/home/even/gdal/git/gdal/gdal/apps:/home/even/gdal/git/gdal/gdal/apps/.libs:/home/even/bin:/home/even/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin Setting LD_LIBRARY_PATH=/home/even/gdal/git/gdal/gdal:/home/even/gdal/git/gdal/gdal/.libs: Setting GDAL_DATA=/home/even/gdal/git/gdal/gdal/data Setting PYTHONPATH=/home/even/gdal/git/gdal/gdal/swig/python/build/lib.linux-x86_64-2.7: Even -- Spatialys - Geospatial professional services http://www.spatialys.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev