[gdal-dev] python 2.7 bindings with trunk (2.3)

Even Rouault even.rouault at spatialys.com
Fri Jan 5 17:41:20 PST 2018


> That worked for me (although I would have never found it, so I appreciate
> your help).  I've put these two lines in gdal/swig/makefile.vc, e.g.
> 
> --- a/gdal/swig/makefile.vc
> +++ b/gdal/swig/makefile.vc
> @@ -20,6 +20,8 @@ python: gdalvars
>          $(SWIG) -c++ -python -modern -new_repr -I../include/python
> -I../include/python/docs -o extensions/ogr_wrap.cpp -outdir osgeo
> ..\include\ogr.i $(SWIG) -c++ -python -modern -new_repr -I../include/python
> -I../include/python/docs -o extensions/gnm_wrap.cpp -outdir osgeo
> ..\include\gnm.i $(SWIG) -c++ -python -modern -new_repr -I../include/python
> -I../include/python/docs -o extensions/gdal_array_wrap.cpp -outdir osgeo
> ..\include\gdal_array.i
> +        set DISTUTILS_USE_SDK=1
> +        set MSSdk=1
>          $(PYDIR)\python.exe setup.py build
>  	cd ..
> 
> Is this a solution that would work across all branches and compilers?

Would indeed be a better solution that a documentation hint. CC'ing Tamas Szekeres if he 
sees any issue with that approach (since I stole the trick from his gisinternals build recipees)

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180106/d299a515/attachment.html>


More information about the gdal-dev mailing list