[GRASS-dev] [GRASS GIS] #3731: winGRASS7.7.svn - ctypes - python 3 issues

GRASS GIS trac at osgeo.org
Sat Jan 12 02:50:29 PST 2019


#3731: winGRASS7.7.svn - ctypes - python 3 issues
----------------------------+------------------------------------
  Reporter:  martinl        |      Owner:  grass-dev@…
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  7.8.0
 Component:  Python ctypes  |    Version:  svn-trunk
Resolution:                 |   Keywords:  wingrass, python3, py3
       CPU:  Unspecified    |   Platform:  Unspecified
----------------------------+------------------------------------

Comment (by martinl):

 Comparing `vector.py` file compiled on

 Windows:

 {{{
 '''Wrapper for vector.h

 Generated with:
 ./ctypesgen.py --cpp gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64
 -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include
 -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include
 -D__GLIBC_HAVE_LONG_LONG -lgrass_vector.7.7.svn -IC:/OSGeo4W64/include
 -IC:/OSGeo4W64/include
 C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/vector.h
 C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/defs/vector.h
 C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/vect/dig_structs.h
 C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/vect/dig_defines.h
 C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/vect/dig_externs.h
 -o OBJ.x86_64-w64-mingw32/vector.py

 Do not modify this file.
 '''
 ...
 SF_POINT25D = 2147483649L #
 C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/vect/dig_defines.h:
 257
 ...
 }}}

 and Linux

 {{{
 '''Wrapper for vector.h

 Generated with:
 ./ctypesgen.py --cpp gcc -E       -I/opt/src/grass7_trunk/dist.x86_64-pc-
 linux-gnu/include -I/opt/src/grass7_trunk/dist.x86_64-pc-linux-gnu/include
 -D__GLIBC_HAVE_LONG_LONG -lgrass_vector.7.7.svn -I/usr/include/postgresql
 -I/usr/include/gdal /opt/src/grass7_trunk/dist.x86_64-pc-linux-
 gnu/include/grass/vector.h /opt/src/grass7_trunk/dist.x86_64-pc-linux-
 gnu/include/grass/defs/vector.h /opt/src/grass7_trunk/dist.x86_64-pc-
 linux-gnu/include/grass/vect/dig_structs.h
 /opt/src/grass7_trunk/dist.x86_64-pc-linux-
 gnu/include/grass/vect/dig_defines.h /opt/src/grass7_trunk/dist.x86_64-pc-
 linux-gnu/include/grass/vect/dig_externs.h -o OBJ.x86_64-pc-linux-
 gnu/vector.py

 Do not modify this file.
 '''
 ...

 SF_POINT25D = 2147483649 # /opt/src/grass7_trunk/dist.x86_64-pc-linux-
 gnu/include/grass/vect/dig_defines.h: 257
 ...
 }}}

 Any idea how to avoid `L` suffix?

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3731#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list