Run GRASS with Python3
|Reported by:||zarch||Owned by:|
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?