Changes between Version 4 and Version 5 of pkg-python/Python27


Ignore:
Timestamp:
Mar 14, 2012, 10:55:28 PM (12 years ago)
Author:
maphew
Comment:

make version independent; move manual steps out of code block

Legend:

Unmodified
Added
Removed
Modified
  • pkg-python/Python27

    v4 v5  
    55Open a command shell and
    66{{{
    7 set osgeo4w_root=c:\o4w_py27
    8 apt.exe setup
     7set ver=2.7.2
    98
    10 :: to share cache with existing install
    11 :: and avoid needless downloads
    12 copy c:\osgeo4w\etc\setup\last-cache %osgeo4w_root%\etc\setup\
     9:: install py27 from standard 32bit msi installer (outside o4w)
     10wget http://www.python.org/ftp/python/%ver%/python-%ver%.msi
     11start python-%ver%.msi
    1312
    14 :: install py25, then examine folder structure
    15 apt install python
     13cd d:\o4w-packages\python
     14mkdir python-%ver%
     15cd python-%ver%
     16mkdir apps bin etc
     17}}}
    1618
    17 :: install py27 from standard msi installer (outside o4w)
    18 start d:\dee\Downloads\Programming\python-2.7.1.msi
    19 
    20 :: Manually compare c:\python27 to c:\o4w_py27\
    21 :: then reflect the structure
    22 
    23 xcopy /s c:\python27 C:\o4w_py27\apps\Python27
    24 pushd %osgeo4w_root%
     19Manually compare c:\python27 to previous o4w python installs, then reflect the structure
     20{{{
     21xcopy /s c:\python27 apps\Python27
    2522move apps\Python27\*.exe bin\
    2623
     
    2926}}}
    3027
    31 Manually add batch files for `etc\ini`, `etc\postinstall`, & `bin`
     28Manually add batch files for `etc\ini`, `etc\postinstall`, & `bin` from skeleton.
    3229
    3330Now create the package archive
    3431{{{
    35 set ver=2.7.1-1
    36 7z a -ttar python-%ver%.tar apps\Python27 bin\python*.exe bin\w9xpopen.exe bin\python27.dll etc\ini\python.bat
     32:: append o4w package version
     33set ver=%ver%-1
     34
     357z a -ttar python-%ver%.tar apps bin etc
    37367z a -tbzip2 -mx9 -mmt=on python-%ver%.tar.bz2 python-%ver%.tar
    3837}}}
    39