Version 6 (modified by 13 years ago) ( diff ) | ,
---|
Making a Python 2.7 package for OSGeo4W
Some rough notes for how I built a python 2.7 package.
Open a command shell and
set vv=27 set ver=2.7.2 :: install py27 from standard 32bit msi installer (outside o4w) wget http://www.python.org/ftp/python/%ver%/python-%ver%.msi start python-%ver%.msi pushd d:\o4w-packages\python mkdir python-%ver% cd python-%ver% mkdir apps bin etc :: Add batch files for `etc\ini`, `etc\postinstall`, & `bin` from skeleton xcopy /s ..\python-skeleton\* .\
Manually compare c:\python27 to previous o4w python installs, then reflect the structure
xcopy /s c:\python%vv% apps\Python%vv% move apps\Python%vv%\*.exe bin\ if exist %windir%\SysWOW64\python%vv%.dll copy %windir%\SysWOW64\python%vv%.dll bin\ if exist %windir%\System32\python%vv%.dll copy %windir%\System32\python%vv%.dll bin\
Now create the package archive
:: append o4w package version set ver=%ver%-1 7z a -ttar python-%ver%.tar apps bin etc 7z a -tbzip2 -mx9 -mmt=on python-%ver%.tar.bz2 python-%ver%.tar
Attachments (1)
-
python-skeleton.zip
(1.4 KB
) - added by 13 years ago.
python package skeleton
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.