[GRASS-dev] [GRASS GIS] #2333: choose python interpreter during the GRASS installation on windows
GRASS GIS
trac at osgeo.org
Thu Jun 12 04:20:04 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 [ticket:2333 zarch]:
> Using the Windows installer would be great to be able to choice which
python interpreter must be used by GRASS.
>
> Suppose that we have already installed a python interpreter like
[https://code.google.com/p/pythonxy/ pythonxy], at the moment the GRASS
installer use is own python interpreter therefore if I want to use any
python packages from GRASS, like [http://www.scipy.org/ scipy] or
[http://pandas.pydata.org/ pandas] I have, some how, to install these
packages on the GRASS interpreter even if they are already present in
pythonxy.
>
> Do you think that would be possible to add this point to the GRASS
installer? or It is not possible to add this option because GRASS must be
compiled using the new interpreter? where should I look to try to add this
option?
>
> Any hints?
a first step would be to change
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/env.bat#L9
{{{
9 set GRASS_PYTHON=%GISBASE%\extrabin\python.exe
}}}
to point to your already installed other python and test if this works (no
idea if any other changes e.g. in wxgui are needed).
''env.bat'' is AFAIR in a subfolder of ''C:\Program Files (x86)\GRASS GIS
X.x''
keep in mind, these other python should have compatible GRASS dependencies
(e.g. numpy, wxpython, matplotlib,...).
if the change in env.bat works, the next step would be to add an option
which python to use to the nsis-script:
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2333#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list