[GRASS-dev] [GRASS GIS] #2708: Run GRASS with Python3

GRASS GIS trac at osgeo.org
Wed Jul 15 10:55:47 PDT 2015

#2708: Run GRASS with Python3
 Reporter:  zarch        |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.0.1
Component:  Default      |    Version:  unspecified
 Keywords:               |        CPU:  Unspecified
 Platform:  Unspecified  |
 Dear all,

 I've started playing with GRASS and Python3. I did some testing on
 Python2.6, Python2.7 and Python3.4.

 So far I'm able to start a GRASS session and execute something trivial
 command, like:

 python -c "from grass.script import read_command;
 print(read_command('g.region', flags='p'))"

 GRASS under python2 with these changes seems to work fine on my system.

 I've splitted the changes in three main patchs:

 1) lib/init/grass.py => init_grass.diff

 2) lib/python/gunittest/* => gunittest.diff

 3) lib/python/script/* => script.diff

 My question is how can we share these changes? should we create a separate
 branch? may I just put these changes on trunk and break it :-D, or should
 trunk still remain quite stable with not experimental code?

Ticket URL: <https://trac.osgeo.org/grass/ticket/2708>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list