Changes between Version 4 and Version 5 of pkg-python/Python27
- Timestamp:
- 03/14/12 22:55:28 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pkg-python/Python27
v4 v5 5 5 Open a command shell and 6 6 {{{ 7 set osgeo4w_root=c:\o4w_py27 8 apt.exe setup 7 set ver=2.7.2 9 8 10 :: to share cache with existing install11 :: 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) 10 wget http://www.python.org/ftp/python/%ver%/python-%ver%.msi 11 start python-%ver%.msi 13 12 14 :: install py25, then examine folder structure 15 apt install python 13 cd d:\o4w-packages\python 14 mkdir python-%ver% 15 cd python-%ver% 16 mkdir apps bin etc 17 }}} 16 18 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% 19 Manually compare c:\python27 to previous o4w python installs, then reflect the structure 20 {{{ 21 xcopy /s c:\python27 apps\Python27 25 22 move apps\Python27\*.exe bin\ 26 23 … … 29 26 }}} 30 27 31 Manually add batch files for `etc\ini`, `etc\postinstall`, & `bin` 28 Manually add batch files for `etc\ini`, `etc\postinstall`, & `bin` from skeleton. 32 29 33 30 Now create the package archive 34 31 {{{ 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 33 set ver=%ver%-1 34 35 7z a -ttar python-%ver%.tar apps bin etc 37 36 7z a -tbzip2 -mx9 -mmt=on python-%ver%.tar.bz2 python-%ver%.tar 38 37 }}} 39