packaging python for install.
Daniel Dittmar
daniel.dittmar at sap.corp
Mon Sep 12 04:52:12 EDT 2005
J wrote:
> I have created an App that embedds the python interpreter and I am
> now in the process of creating an installer. I am currently linking
> python24.lib, but it is only 184k and I suspect that it imports other
> dlls... I am also using numarray. Does anyone have any experiences in
> packaging python with an application in a single installer ? Has that
> been done before ?
- you need python24.dll (probably in %windir%\system32)
- you need some of the *.pyd found in you Pythondir\DLLs. You can use
Proces Explorer from www.sysinternals.com to see all the loaded DLLs and
.pyd that your running program accesses
- you need a large part of the Python library. Best: compile them to
.pyc files using Pythondir\Lib\compileall.py, pack them into one .zip
file and then add that .zip file to %PYTHONPATH%
Hint: Python will search for the Library files through the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\PythonCore\<version>. You don't have to set
this entry with your installer (and you shouldn't, as it would break an
already existing Python installation). But you could rename it on your
machine as this allows you to test your installation without having to
copy everything to a clean machine.
Daniel
More information about the Python-list
mailing list