#854: g.extension does not work on a Mac (probably not on Windows either ---------------------------------+------------------------------------------ Reporter: cmbarton | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 6.4.2 Component: Installation | Version: 6.4.1 RCs Keywords: g.extension, addons | Platform: All Cpu: All | ---------------------------------+------------------------------------------
Comment(by kyngchaos): In talking with Michael off-list, I came up with the following summary of issues with the current state of g.extension: '''Clearly define what GRASS_ADDON_PATH is.''' It should be one thing only. Currently in GRASS 7 it can be a mix of bin (full) paths and prefix paths, and is just messy and confusing. I'd recommend (I'm sure I mentioned something like this before) that to keep backwards compatibility, GRASS_ADDON_PATH should be left as it's always been defined: full paths to executable folders (ie .../bin). Add a new variable for "extensions" that includes prefix paths where bin and scripts (possibly etc and lib) subfolders are found. Use this new variable for g.extension, as well as adding the /bin and /scripts subfolders to the PATH in grass.py. '''grass.py needs to handle multiple paths in GRASS_ADDON_PATH.''' Really, with the above recommendation, GRASS_ADDON_PATH can be simply added to PATH as it always has been, and the new var would get the /bin & /scripts treatment. Currently, it adds GRASS_ADDON_PATH to the PATH (the old definition of full paths to ../bin) ''and'' adds subfolders to GRASS_ADDON_PATH as a whole to /bin and /scripts to the PATH. ie, the OSX startup sets GRASS_ADDON_PATH as: {{{ $HOME/Library/Application Support/GRASS/7.0/Modules/bin:/Library/Application Support/GRASS/7.0/Modules/bin }}} What gets added to the PATH is: {{{ /Users/kyngchaos/Library/Application Support/GRASS/7.0/Modules/bin: /Library/Application Support/GRASS/7.0/Modules/bin/bin: /Users/kyngchaos/Library/Application Support/GRASS/7.0/Modules/bin: /Library/Application Support/GRASS/7.0/Modules/bin/scripts }}} '''change the OSX startup use the new var.''' The OSX default paths were designed as prefix paths, though only the bin subfolders were added to GRASS_ADDON_PATH. '''change g.extension to use the new var.''' then it should start working properly. -- Ticket URL: <http://trac.osgeo.org/grass/ticket/854#comment:16> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev