Changes

Jump to: navigation, search

Python

2,159 bytes added, 23:12, 5 June 2008
no edit summary
</packages>
</source>
 
----
For modules use easy_install, works with the most modules, download the script [http://peak.telecommunity.com/dist/ez_setup.py]ez_setup.py and the file distutils.cfg for config easy_install. use apache, easy_install get the files of modules (.exe, .egg):
 
distutils.cfg
<source lang=ini>
[easy_install]
 
find_links= http://server.apache/pyeasy/
allow_hosts = *.apache
</source>
 
The easy_install get the modules (.exe,.egg) of apache server. The package for easy_install is:
 
<source lang="xml">
<!--Easy Install python -->
<package
id="pyeasyinstall"
name="Easy Install Python"
revision="3"
reboot="false"
priority="398">
<depends package-id="python"/>
<check type="file" condition="exists" path="C:\Python25\Scripts\easy_install.exe" />
<install cmd='"C:\Python25\python" %SOFTWARE%\python\ez_setup.py' />
<install cmd='cmd /c xcopy /v /s /i /e /h /c /y /q "%SOFTWARE%\python\distutils.cfg" "C:\Python25\Lib\distutils\"' />
<upgrade cmd='"C:\Python25\python" %SOFTWARE%\python\ez_setup.py' />
<upgrade cmd='cmd /c xcopy /v /s /i /e /h /c /y /q "%SOFTWARE%\python\distutils.cfg" "C:\Python25\Lib\distutils\"' />
<remove cmd='cmd /c if exist "C:\Python25\python\Scripts\easy_install.exe" del "C:\Python25\python\Scripts\easy_install.exe"' >
<exit code="1" />
<exit code="0" />
</remove>
</package>
 
</source>
 
A template for the modules is:
<source lang="xml">
<package
id="pynamemodule"
name="namemodule 2.0.1"
revision="0"
reboot="false"
priority="397">
<depends package-id="python"/>
<depends package-id="pyeasyinstall"/>
<check type="file" condition="exists" path="C:\Python25\Lib\site-packages\namemodule-2.0.1-py2.5-win32.egg" />
<install cmd='"C:\Python25\Scripts\easy_install.exe" --quiet namemodule' />
<upgrade cmd='"C:\Python25\Scripts\easy_install.exe" --quiet --upgrade pynamemodule' />
<remove cmd='cmd /c if exist "C:\Python25\Lib\site-packages\namemodule-2.0.1-py2.5-win32.egg" del "C:\Python25\Lib\site-packages\namemodule-2.0.1-py2.5-win32.egg"' >
<exit code="1" />
<exit code="0" />
</remove>
</package>
</source>
 
 
[[category:Silent Installers]]
[[category:MSI]]
6
edits

Navigation menu