Re: [gdal-dev] moving swig\python\scripts\* into the osgeo package

2020-10-07 Thread Sean Gillies
Hi Idan, The wrappers are sort of built into Python already. If you declare entry points for the osgeo.gdal package (see https://packaging.python.org/specifications/entry-points/) then setuptools will write the wrappers for you. Here's one as an example. It's defined at https://github.com/mapbox/r

[gdal-dev] moving swig\python\scripts\* into the osgeo package

2020-10-07 Thread Idan Miara
Hi all, I would like to get your opinion about making the code in the python scripts more reusable so they can be imported as modules. I'm working on improving gdal_calc.py: https://github.com/OSGeo/gdal/pull/3016 Eventually I would need to import it as a module, since it's not in a package it's