[GRASS-dev] [GRASS GIS] #2333: choose python interpreter during the GRASS installation on windows
GRASS GIS
trac at osgeo.org
Fri Jun 13 04:36:29 PDT 2014
#2333: choose python interpreter during the GRASS installation on windows
--------------------------------------------------+-------------------------
Reporter: zarch | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: windows installer python interpreter | Platform: MSWindows 8
Cpu: All |
--------------------------------------------------+-------------------------
Comment(by hellik):
Replying to [comment:10 zarch]:
>
> ok, next week I will try to look in to the nsis script to see if is it
possible to add this option during the installation process.
some steps may be:
- add e new installer gui-section "Customize python" (or something like
that)
- add some explanations to the gui-section "Customize python": e.g.
compatible wxpython, numpy, matplotlib, etc. are needed, ...
- default option: %GRASS_PYTHON% is the packaged python
- user option: ask the user for the %PATH% to the user wanted python
technical implementation - some pointers:
- let point %GRASS_PYTHON% to the user defined python:
a few years ago I've added two string replace functions to the nsis-
script:
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L104
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L338
use some of these functions to adjust %GRASS_PYTHON% and %PYTHONHOME% in
''env.bat'' to the user defined paths by a e.g. if/else statement
techn
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2333#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list