[GRASS-dev] Add support for Python3
glynn at gclements.plus.com
Mon Jul 27 13:47:08 PDT 2015
Markus Neteler wrote:
> > ok, I've commited the changes in lib/init/grass.py and in the
> > lib/python/gunittest/*
> Please post to the list how to switch to Python3 in case that multiple
> versions are available.
> Like this more testers may join.
It depends upon how the different Python versions are installed.
GRASS' scripts use the shebang:
so the first program named "python" in $PATH will be used.
If Python 3.x is installed as e.g. /usr/bin/python3, it usually
suffices to create a directory containing a symlink from python to
/usr/bin/python3 and put that directory at the start of $PATH. E.g.
ln -s /usr/bin/python3 python3/python
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev