Changes between Version 12 and Version 13 of pkg-python/Python27
- Timestamp:
- 03/30/12 13:59:07 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pkg-python/Python27
v12 v13 1 1 = Making a Python 2.7 package for OSGeo4W = 2 2 3 ''Recipe for building a python package.''3 ''Recipe for building the python packages (-core, -help, -wrapper).'' 4 4 5 5 Open a command shell and … … 14 14 15 15 pushd d:\o4w-packages\python 16 mkdir python-%ver% 17 cd python-%ver% 18 mkdir apps bin etc 19 20 :: Add batch files for `etc\ini`, `etc\postinstall`, & `bin` from skeleton 21 xcopy /s ..\python-skeleton\* .\ 16 mkdir python-core python-wrapper python-help 22 17 }}} 23 18 24 19 Manually compare c:\python27 to previous o4w python installs, then reflect the structure 25 20 {{{ 26 xcopy /s c:\python%vv% apps\Python%vv% 21 cd python-core 22 xcopy /s/d c:\python%vv% apps\Python%vv% 27 23 move apps\Python%vv%\*.exe bin\ 28 24 move apps\Python%vv%\*.dll bin\ 25 26 mkdir ..\python-help\apps\Python%vv%\Doc 27 move apps\Python%vv%\Doc ..\python-help\apps\Python%vv%\Doc 29 28 }}} 30 29 31 Now create the package archive 30 31 Now create the package archives 32 32 {{{ 33 rem 7z a -ttar ..\python-%ver-pkg%.tar apps bin etc 34 rem 7z a -tbzip2 -mx9 -mmt=on ..\python-%ver-pkg%.tar.bz2 ..\python-%ver-pkg%.tar 35 %osgeo4w_root%\apps\msys\bin\tar.exe cvjf ../python-%ver-pkg%.tar.bz2 apps bin etc 33 %osgeo4w_root%\apps\msys\bin\tar.exe cvjf ../python-%ver-pkg%.tar.bz2 apps bin 34 35 pushd ..\python-help 36 %osgeo4w_root%\apps\msys\bin\tar.exe cvjf ../python-help-%ver-pkg%.tar.bz2 apps 37 38 pushd ..\python-wrapper 39 %osgeo4w_root%\apps\msys\bin\tar.exe cvjf ../python-wrapper-%ver-pkg%.tar.bz2 apps bin etc 36 40 }}} 37 41