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

Moritz Lennert mlennert at club.worldonline.be
Fri Feb 20 05:35:24 PST 2015


On 20/02/15 14:25, Markus Neteler wrote:
> 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.

Doesn't 'export GRASS_PYTHON=YourChoiceOfPython' simply do the trick at 
runtime ?

Moritz


More information about the grass-dev mailing list