[GRASS-dev] How to install grass development package

ming han dustming at gmail.com
Mon Sep 7 07:28:20 PDT 2020


Hi Nicklas

   Many thanks for your reply. I solve the problem by 1) configure the
grass source code and then make. 2) modify the make.platform in the
generated /include/Make folder. and then compile the grass addons for my
QGIS GRASS with these files.

   I guess following your suggestions install whole grass is a more clean
solution to me. I will try that later.

Thanks again for all your kind support

Ming

Nicklas Larsson <n_larsson at yahoo.com> 于2020年9月7日周一 上午8:52写道:

> Hi Ming,
>
> The bundled mac distributions are normally pre-packaged with all
> dependencies needed, including python. In those cases it is difficult to
> change python version.
>
> Again, if you need close integration to QGIS, the following may not answer
> to your needs:
>
> A standard unix-like build of GRASS is python version independent, which
> means it is enough to set the environment variable GRASS_PYTHON to the
> python binary of choice (e.g. GRASS_PYTHON=/usr/local/bin/python3.8). This
> also works on mac. The problem on Mac is how to deal with dependencies. I
> personally make use of MacPorts for GRASS development and testing. I first
> install GRASS with MacPorts, then I have the dependencies I need in
> /opt/local, which can be used for configure, make and make install [1].
>
> Alternatively, you can build your own GRASS.app with grass-conda [2]
> building script. You can duplicate the default/conda-requirements-dev.txt,
> set appropriate python version and use the new file as --conda-file.
>
>
> / Nicklas
>
>
> [1] https://grasswiki.osgeo.org/wiki/Compile_and_Install
> [2] https://github.com/nilason/grass-conda
>
>
>
> > On Saturday, 5 September 2020, 04:15:17 CEST, ming han <
> dustming at gmail.com> wrote:
> >
> > Hi everyone
> >
> >    Thanks for all your help. Is it possible for me to build grass with a
> specific python version? And how to do that?
> >
> > Thanks
> > Ming
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20200907/164e7a57/attachment.html>


More information about the grass-dev mailing list