[gdal-dev] Python3 continuous testing

Tamas Szekeres szekerest at gmail.com
Wed Jan 28 03:36:17 PST 2015


Hi Even,

I'm always confused about the GDAL-python bindings what is the best
approach to use. The SWIG generated output is also included in the
bindings, but as far as I remember it wasn't always up to date. Also the
windows makefile will generate the bindings by default and there's no
option to bypass this step as far as I remember.

On the other hand, I'm not quite sure which one is the suggested SWIG
version to generate the bindings, I also remember the cases when the recent
version wasn't sufficient and we had to use an earlier SWIG version to
compile. Not sure how it depends on the Python version either.

I think we should either remove the SWIG generated output from the
repository or modify the makefiles not to generate the output every time.

Best regards,

Tamas



2015-01-28 9:59 GMT+01:00 Even Rouault <even.rouault at spatialys.com>:

> Le mardi 27 janvier 2015 23:18:45, Tamas Szekeres a écrit :
> > Hi Even,
> >
> > I get this output from a Python 3.4 build (VS2012):
> >
> >
> > E:\builds\Python34\python.exe setup.py build
> > running build
> > running build_py
> > creating build
> > creating build\lib.win32-3.4
> > copying gdal.py -> build\lib.win32-3.4
> > copying ogr.py -> build\lib.win32-3.4
> > copying osr.py -> build\lib.win32-3.4
> > copying gdalconst.py -> build\lib.win32-3.4
> > copying gdalnumeric.py -> build\lib.win32-3.4
> > creating build\lib.win32-3.4\osgeo
> > copying osgeo\gdal.py -> build\lib.win32-3.4\osgeo
> > copying osgeo\gdalconst.py -> build\lib.win32-3.4\osgeo
> > copying osgeo\gdalnumeric.py -> build\lib.win32-3.4\osgeo
> > copying osgeo\gdal_array.py -> build\lib.win32-3.4\osgeo
> > copying osgeo\ogr.py -> build\lib.win32-3.4\osgeo
> > copying osgeo\osr.py -> build\lib.win32-3.4\osgeo
> > copying osgeo\__init__.py -> build\lib.win32-3.4\osgeo
> > Fixing build\lib.win32-3.4\gdal.py build\lib.win32-3.4\ogr.py
> > build\lib.win32-3.4\osr.py build\lib.win32-3.4\gdalconst.py
> > build\lib.win32-3.4\gdalnumeric.py build\lib.win32-3.4\osgeo\gdal.py
> > build\lib.win32-3.4\osgeo\gdalconst.py
> > build\lib.win32-3.4\osgeo\gdalnumeric.py
> > build\lib.win32-3.4\osgeo\gdal_array.py build\lib.win32-3.4\osgeo\ogr.py
> > build\lib.win32-3.4\osgeo\osr.py build\lib.win32-3.4\osgeo\__init__.py
> > Skipping implicit fixer: ws_comma
> > Fixing build\lib.win32-3.4\gdal.py build\lib.win32-3.4\ogr.py
> > build\lib.win32-3.4\osr.py build\lib.win32-3.4\gdalconst.py
> > build\lib.win32-3.4\gdalnumeric.py build\lib.win32-3.4\osgeo\gdal.py
> > build\lib.win32-3.4\osgeo\gdalconst.py
> > build\lib.win32-3.4\osgeo\gdalnumeric.py
> > build\lib.win32-3.4\osgeo\gdal_array.py build\lib.win32-3.4\osgeo\ogr.py
> > build\lib.win32-3.4\osgeo\osr.py build\lib.win32-3.4\osgeo\__init__.py
> > Skipping implicit fixer: ws_comma
> > running build_ext
> > building 'osgeo._gdal' extension
> > creating build\temp.win32-3.4
> > creating build\temp.win32-3.4\Release
> > creating build\temp.win32-3.4\Release\extensions
> > C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c
> > /nologo /Ox /MD /W3 /GS- /DNDEBUG -I../../port -I../../gcore -I../../alg
> > -I../../ogr/ -IE:\builds\Python34\include -IE:\builds\Python34\include
> > -IE:\builds\Python34\lib\site-packages\numpy\core\include
> > /Tpextensions/gdal_wrap.cpp
> > /Fobuild\temp.win32-3.4\Release\extensions/gdal_wrap.obj
> > gdal_wrap.cpp
> > extensions/gdal_wrap.cpp(2451) : error C3861: 'PyCObject_Import':
> > identifier not found
> > extensions/gdal_wrap.cpp(2521) : error C3861: 'PyCObject_FromVoidPtr':
> > identifier not found
> > extensions/gdal_wrap.cpp(2544) : error C3861: 'PyCObject_AsVoidPtr':
> > identifier not found
> > extensions/gdal_wrap.cpp(2549) : error C3861: 'PyCObject_FromVoidPtr':
> > identifier not found
>
> --> This is SWIG generated code, so perhaps you need to update to a newer
> SWIG
> that supports Python 3.4 ?
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150128/9369f21d/attachment-0001.html>


More information about the gdal-dev mailing list