[osgeo4w-dev] Re: [osgeo4w] #219: Upgrade python version

OSGeo4W trac_osgeo4w at osgeo.org
Mon May 2 15:05:28 EDT 2011

#219: Upgrade python version
Reporter:  jmalik       |       Owner:  osgeo4w-dev@…              
    Type:  enhancement  |      Status:  new                        
Priority:  major        |   Component:  Package                    
 Version:               |    Keywords:  python                     

Comment(by maphew):

 I've built a python 2.7 package for testing,
 while osgeo.org is down you can fetch it here:

 It *REPLACES* the existing python2.5 files:


 So make a backup of these 4 files if you're testing in an existing
 install. Everything else is untouched (e.g. .\apps\python25).

 To use, unpack from `%osgeo4w_root%`.


 My install and testing procedure:

 1. Download standalone apt from
 http://code.google.com/p/maphew/downloads/list and place in PATH as

 2. Open command shell and
 set osgeo4w_root=c:\o4w_py27
 apt setup

 :: to share cache with existing install
 :: and avoid needless downloads
 REM copy c:\osgeo4w\etc\setup\last-cache %osgeo4w_root%\etc\setup\

 apt install shell

 :: install py27 testing package, assumes 7zip in path
 pushd %osgeo4w_root%
 7z x python-2.7.1-1.tar.bz2
 7z x python-2.7.1-1.tar

 3. Run osgeo4w.bat

 You now have a minimal osgeo4w install with just shell and python 2.7. Use
 apt to install other packages and see what works/breaks.

 Remember to open a new OSGeo4W shell after installing (or run the batch
 files in .\etc\ini manually).

Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/219#comment:6>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.

More information about the osgeo4w-dev mailing list