[gdal-dev] scripts/setdevenv.sh

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] scripts/setdevenv.sh

Even Rouault-2
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: scripts/setdevenv.sh

Ben Elliston
This is handy, thanks, Even!

Ben
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: scripts/setdevenv.sh

Kurt Schwehr-2
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 <[hidden email]> wrote:
This is handy, thanks, Even!

Ben
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev



--

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: scripts/setdevenv.sh

Markus Metz-3
In reply to this post by Even Rouault-2


On Thu, Apr 5, 2018 at 11:44 AM, Even Rouault <[hidden email]> 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
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev