[GRASS-dev] Python handling in winGRASS7 [was: Re: GRASS GIS 7 tech-preview release preparations]

Helmut Kudrnovsky hellik at web.de
Fri Jul 26 12:56:08 PDT 2013


>
>
>Note that Python 3 includes a launcher utility for Windows:
>
>	http://docs.python.org/3/using/windows.html#launcher
>
>The idea is that the .py extension can be associated with the
>launcher, which can be configured to use a specific version of Python
>in a specific context.
>
>I don't know whether it's possible to make use of this without
>installing the rest of Python 3, though.

just a quick test done:

- downloaded Python 3.3.2 Windows x86 MSI Installer
- Python 3.3.2 extracted but _nothing_ installed (no registry entry)
- opened a windows console and change into the extracted folder: cd
C:\dl\python-3.3.2\pythonXYZ 

- C:\dl\python-3.3.2\pythonXYZ>py --version
Python 2.7.2

it finds the system wide python installation of ArcGIS here on my box

- quick script test listed here:
http://docs.python.org/3/using/windows.html#from-a-script

#! python
import sys
sys.stdout.write("hello from Python %s\n" % (sys.version,))

>From the directory in which hello.py lives, execute the command:

py hello.py
--------
C:\dl\python-3.3.2\pythonXYZ>py hello.py
hello from Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit
(Intel)]
--------

so for the first quick test it seems it works without installing the rest of
Python 3.

further testing needed...






-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-GRASS-GIS-7-tech-preview-release-preparations-tp5066002p5069037.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list