Added grass-core, support for grass 7.6

pull/418/head
Piero Toffanin 2018-03-29 18:56:15 -04:00
rodzic db81a67c53
commit 09c90b9cc3
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -18,7 +18,7 @@ RUN printf "deb http://mirror.steadfast.net/debian/ stable main contrib n
RUN printf "deb http://mirror.steadfast.net/debian/ testing main contrib non-free\ndeb-src http://mirror.steadfast.net/debian/ testing main contrib non-free" > /etc/apt/sources.list.d/testing.list
# Install Node.js GDAL, nginx, letsencrypt, psql
RUN apt-get -qq update && apt-get -qq install -t testing -y binutils libproj-dev gdal-bin nginx && apt-get -qq install -y gettext-base cron certbot postgresql-client-9.6
RUN apt-get -qq update && apt-get -qq install -t testing -y binutils libproj-dev gdal-bin nginx grass-core && apt-get -qq install -y gettext-base cron certbot postgresql-client-9.6
# Install pip reqs

Wyświetl plik

@ -15,7 +15,8 @@ class GrassEngine:
def __init__(self):
self.grass_binary = shutil.which('grass7') or \
shutil.which('grass72') or \
shutil.which('grass74')
shutil.which('grass74') or \
shutil.which('grass76')
if self.grass_binary is None:
logger.warning("Could not find a GRASS 7 executable. GRASS scripts will not work.")