#434: python swig bindings for 7.0 svn noyt working on ubuntu install -----------------------+---------------------------------------------------- Reporter: mulligan | Owner: [email protected] Type: defect | Status: new Priority: major | Milestone: 7.0.0 Component: Python | Version: svn-trunk Resolution: | Keywords: python swig Platform: Linux | Cpu: x86-32 -----------------------+---------------------------------------------------- Comment (by glynn):
Replying to [comment:2 mulligan]: > Just updated to rev 35437 and still not getting the python_grass7.py files written That's correct. There isn't a python_grass7 module any more; instead there is a "swig" module with 10 separate sub-modules named: utils date grass math proj imagery vector raster display stats These can be imported individually with e.g. "import swig.grass", or you can import all of them with "import swig" (then use e.g. swig.grass.G_gisinit etc), or you can use e.g. "from swig.grass import *" to import all names from a module. You can do the latter for multiple modules, but AFAIK, there's no way to import names from all sub-modules of a module with a single command. OTOH, it wouldn't be hard to add an "all" sub-module which does "from <submodule> import *" for each submodule. Suggestions about the ideal structure for the Python interface are welcome. AFAICT, the previous structure was just the quickest way to get something working, rather than an explicit design choice. > here is the output of sudo make: That's a successful compilation. -- Ticket URL: <http://trac.osgeo.org/grass/ticket/434#comment:3> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
