Version 8 (modified by maphew, 14 months ago)

python 2.7 now default

Python

Python executable and runtime

  • Python commandline interpreter, and libraries.
  • The interpreter can be invoked as python in the osgeo4w shell.
  • The Python interpreter is not associated with the .py extension in the shell, so you can run .py files directly.
  • Documentation is not included (beyond builtin doc strings)
  • Tcl support is not included.
  • NumPy is a distinct add on package due to it's size.
category Commandline_Utilities
requires shell
version 2.7.2-2

Packager Notes

  • This package is harvested from the standard Python 2.7.2 .msi installer from python.org (see making a Python 2.7 package)
  • New Python extensions should be unpacked in osgeo4w\apps\Python25\Lib\site-packages
  • Include files and libraries are included, but in the apps\Python27 tree. The distutils/sysconfig.py settings should be correct.
  • Extensions may need to be compiled with VC7.1 to be compatible.
  • etc\ini\python.bat set PYTHONHOME to control sys.prefix and finding of libraries, etc. This should supercede any other python on the system when python is run within the OSGeo4W shell.

Open tickets

type defect

#357
python 2.7.4 dll conflicts
#317
Bug in os library of Python 2.7
#314
Minor typo in Initialising BAT file
#267
ctypes version conflict with numpy
#24
Python package needs cgi-bin/apache support

type enhancement

#114
optional package to register python in Windows registry
#162
pythonwin launcher

type task

#297
upgrade python to 2.7.4
#256
update python-rpy2 package for Python 2.7
#253
update python mapscript packages for Python 2.7
#254
update mapfish_framework packages to Python 2.7
#226
Inclusion of the python lxml library

Recently closed tickets

type defect

#305
python/sqlite: "sqlite3-rtree-geometry-callback" not found in "C:\OSGeo4W\apps\Python27\DLLs\sqlite3.dll"
#299
pyuic4 does not work
#282
python path getting overwritten
#96
"import grass.script as grass" in Python GRASS AddOns doesn't work
#119
liblas Python does not install liblas .dll into OSGeo4W\bin folder
#263
request for python-dateutil