[GRASS-dev] python2/3 and GRASS build on Arch

Markus Neteler neteler at osgeo.org
Wed Jan 2 12:04:21 PST 2013


On Wed, Jan 2, 2013 at 11:24 AM, Maciej Sieczka <msieczka at sieczka.org> wrote:
> Hi,
>
> On Arch GNU/Linux the `python' executable by default links to `python3'. To
> use Python 2.x, one has to call `python2' explicitely. This requires Archers
> to tweak include/Make/Platform.make.in and each GRASS python executable to
> build and use GRASS (e.g. like in
> https://aur.archlinux.org/packages/gr/grass7-svn/PKGBUILD).
>
> Can GRASS make system be changed so that the python executable used during
> GRASS build and runtime is configurable?

I checked and found this:

[neteler at north grass64]$ sh configure --help 2>&1 | grep python
  --with-python[=path/python-config]
                          (python-config with path, e.g.
                          '--with-python=/usr/bin/python2.5-config',

which sets
AC_SUBST(PYTHONINC)
AC_SUBST(PYTHONCFLAGS)
AC_SUBST(PYTHONLDFLAGS)
AC_SUBST(USE_PYTHON)
AC_SUBST(MACOSX_ARCHS_PYTHON)

This has been removed from GRASS 7:

[neteler at north grass70]$ sh configure --help 2>&1 | grep python
[neteler at north grass70]$

Perhaps this change should be reverted?
http://trac.osgeo.org/grass/changeset/45388

Markus


More information about the grass-dev mailing list