wiki:pkg-python

Python

Python meta package, includes core executable & runtime, help

  • 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 must run .py files with python foobar.py and not by double-clicking on them
  • 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.

Comprised of 3 sub-packages:

  • python-wrapper - Wrapper to set python environment for Osgeo4W (required)
  • python-core - Python executable and runtime (required)
  • python-help - Python compiled help file (optional with Advanced Install)
category Commandline_Utilities
requires shell python-wrapper python-core python-help
version 2.7.2-2

Other python pages of note:

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 supersede any other python on the system when python is run within the OSGeo4W shell.

Open tickets

defect type tickets:

#466
Python stopped working when using python gdal_calc and band.ReadAsArray() on Windows
#407
Python.exe: import osgeo.gdal_array raise Application Error
#267
ctypes version conflict with numpy
#24
Python package needs cgi-bin/apache support

enhancement type tickets:

#480
update of rpy2
#461
GRASS GIS temporal algebra needs Python PLY package
#428
Add python-uno library
#391
pyuic4 shell script shall be installed alongside with pyuic4.bat
#114
optional package to register python in Windows registry
#162
pythonwin launcher

task type tickets:

#463
Update scikit-learn
#226
Inclusion of the python lxml library

Recently closed tickets

defect type tickets:

#526
python can't import matplotlib, matplotlib.pth is missing
#511
import scipy.special gives ImportError DLL load failed: The specified module could not be found.
#422
Add sitecustomize.py to set Python default encoding to UTF-8
#357
python 2.7.4 dll conflicts
#314
Minor typo in Initialising BAT file
#390
Update python shapely library

Last modified 4 years ago Last modified on Jan 21, 2013 10:23:19 AM