[GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

Markus Metz markus.metz.giswork at gmail.com
Wed Sep 5 12:37:44 PDT 2018


On Mon, Sep 3, 2018 at 8:28 AM Markus Neteler <neteler at osgeo.org> wrote:
[...]
>
> Could you please post a few lines how to properly do the testing with
> virtualenv?

If python3 with all required packages is already installed on the system,
there is a simpler solution than virtualenv:

mkdir ~/bin_p3
ln -s /usr/bin/python3 ~/bin_p3/python

# make python3 the default python interpreter
export PATH="~/bin_p3:$PATH"

compile GRASS and run GRASS with these PATH settings

alternatively, the shebang in GRASS *.py files can be changed to python3
(should be changed to python3 according to Python developer's Guide PEP394)

Markus M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180905/6448f1be/attachment.html>


More information about the grass-dev mailing list