[GRASS-dev] forcing a Python version/install when compiling GRASS

Markus Neteler neteler at osgeo.org
Fri Feb 20 05:25:55 PST 2015


On Fri, Feb 20, 2015 at 1:47 PM, Yann Chemin <ychemin at gmail.com> wrote:
> Hi,
>
> I would like to use a different version of Python from the default install in the PC,
> is there a way to force it in the configure script?

Not (yet) AFAIK. But you can modify it after the "configure" step here:


include/Make/Platform.make:PYTHON              = python

There is at time the hardcoded name:
include/Make/Platform.make.in:PYTHON              = python

Other option: use "alias":

[neteler at pgis_north ]$ python --version
Python 2.7.8

[neteler at pgis_north ]$ alias python=python3.4

[neteler at pgis_north ]$ python --version
Python 3.4.1

Then run "configure" etc. Of course the alias must then persist later,
so put it into $HOME/.bashrc or similar.

Markus


More information about the grass-dev mailing list