<div dir="ltr">Thanks, your analyses seems very deep. It would be incredibly useful if somebody would solve this issue since it might fix also compilation on some Macs (#1819), for Ubuntu PPA and some other less usual configurations.<div>
<br></div><div>Vaclav<br><div><br></div><div><a href="https://trac.osgeo.org/grass/ticket/1819">https://trac.osgeo.org/grass/ticket/1819</a><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Mar 25, 2014 at 2:54 PM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to fix `build_modules_xml.py` to produces description also<br>
for Python modules. The problem is the failure in grass.script's<br>
get_interface_description() [1] caused by two issues. When running the<br>
script from Makefile [2], the PATHEXT variable can miss '.py'<br>
extension (for running session it's set up by grass.py [3]. I have<br>
fixed this issue in r59338.<br>
<br>
The _remaining_ issue is related to Makefiles. Strangely the rule [4]<br>
produces _doubled_ PATH, on Windows it's cased by LD_LIBRARY_PATH<br>
which overwrites manually defined PATH:<br>
<br>
GISRC=/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/demolocation/.grassrc70<br>
GISBASE=c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32<br>
--> PATH="/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/bin:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/bin:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/scripts:<br>
$PATH"<br>
PYTHONPATH="c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python;c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/python;$PYTHONPATH"<br>
--> PATH="/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/bin:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/scripts:/c/osgeo4w/usr/src/grass_trunk/dist.i686<br>
-pc-mingw32/lib:/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/lib:.:/usr/local/bin:/mingw/bin:/bin:/osgeo4w/bin:/c/Windows/system32:/c/Windows:/c/Windows/<br>
WBem:/usr/bin:/osgeo4w/apps/Python27/Scripts"<br>
LC_ALL=C python tools/build_modules_xml.py ><br>
/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/etc/gui/wxpython/<br>
<br>
The result is that `$GISBASE/scripts` is not in the path and<br>
get_interface() fails. Does anybody have an idea how to correctly fix<br>
`run_grass` rule. If I add `$GISBASE/scripts` to LD_LIBRARY_PATH<br>
manually, it starts to work.<br>
<br>
Thanks for any idea in advance, Martin<br>
<br>
[1] <a href="http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/task.py#L455" target="_blank">http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/task.py#L455</a><br>
[2] <a href="http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/Makefile#L53" target="_blank">http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/Makefile#L53</a><br>
[3] <a href="http://trac.osgeo.org/grass/browser/grass/trunk/lib/init/grass.py#L418" target="_blank">http://trac.osgeo.org/grass/browser/grass/trunk/lib/init/grass.py#L418</a><br>
[4] <a href="http://trac.osgeo.org/grass/browser/grass/trunk/include/Make/Rules.make#L33" target="_blank">http://trac.osgeo.org/grass/browser/grass/trunk/include/Make/Rules.make#L33</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martin Landa * <a href="http://geo.fsv.cvut.cz/gwiki/Landa" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</font></span></blockquote></div><br></div>