[GRASS-SVN] r64535 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 9 09:59:14 PST 2015
Author: martinl
Date: 2015-02-09 09:59:14 -0800 (Mon, 09 Feb 2015)
New Revision: 64535
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: check Module.make and suggest solution (missing grass-dev package)
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2015-02-09 17:27:41 UTC (rev 64534)
+++ grass/trunk/scripts/g.extension/g.extension.py 2015-02-09 17:59:14 UTC (rev 64535)
@@ -783,6 +783,10 @@
os.chdir(os.path.join(TMPDIR, name))
grass.message(_("Compiling..."))
+ if not os.path.exists(os.path.join(gisbase, 'include',
+ 'Make', 'Module.make')):
+ grass.fatal(_("Please install GRASS development package"))
+
if 0 != grass.call(makeCmd,
stdout = outdev):
grass.fatal(_('Compilation failed, sorry. Please check above error messages.'))
More information about the grass-commit
mailing list