Re: [GRASS-user] experimental Python 3 support in trunk

Markus Metz <[email protected]> Wed, 5 Sep 2018 21:37:44 +0200
Newsgroups gmane.comp.gis.grass.devel,gmane.comp.gis.grass.user
Message-ID <CAG+h=FEjLjBPFEnvcAiQ58pbPwfvDg+AyPnVJV-wh73Meo_BmQ@mail.gmail.com>
On Mon, Sep 3, 2018 at 8:28 AM Markus Neteler <[email protected]> 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

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev