[GRASS-dev] [release planning] GRASS GIS 8.0.0

Markus Neteler neteler at osgeo.org
Sun Aug 4 23:42:20 PDT 2019


On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
<markus.metz.giswork at gmail.com> wrote:
> On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler at osgeo.org> wrote:
> >
> > Hi devs,
> >
> > since we now have the 7.8 release branch, I suggest to get rid of
> > Python 2 support in master.
> >
> > This will greatly simplify the code. Python 2 is EOL anyway in a few months.
>
> I guess the first step would be to change the deprecated shebang
> #!/usr/bin/env python
> to
> #!/usr/bin/env python3

Exactly.

markusN

PS: Those users insisting on Python 2 may then just run

find -name '*.py' | xargs sed -i 's,#!/usr/bin/env
python3,#!/usr/bin/env python2,' && \
    sed -i 's,python3,python2,' include/Make/Platform.make.in


More information about the grass-dev mailing list