On 11/11/2008 3:42 PM, Jamie Kirkpatrick wrote:
> Good to know something is on the radar. For my part I'd like to be able to
> share common set of extensions and dlls between several applications. I
> already exclude all the dlls that are installed as part of our normal
> install process, but I'm left having to embed the python.dll and our custom
> python module (which contains lots of .pyd compiled code) into each
> application. Ideally I could put this and the python.dll in some kind of
> support bundle and save myself as much space as possible.
The idea is that one should be able to decide what to share and what not
to share through the spec files, as the spec file will dictate what to
put within an executable and what to put into a separate PKG file.
For instance:
=================================================================
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'support\\useUnicode.py'), 'foo.py'])
b = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'support\\useUnicode.py'), 'bar.py')
pyz = PYZ(a.pure+b.pure)
pkg = PKG(a.scripts + b.scripts +
a.binaries + b.binaries +
a.zipfiles + b.zipfiles,
name=os.path.join('dist', "shared.pkg"))
exe1 = EXE([],
a.scripts,
exclude_binaries=1,
name=os.path.join('dist', 'foo.exe'),
debug=True,
strip=False,
upx=False,
console=True )
exe2 = EXE([],
b.scripts,
exclude_binaries=1,
name=os.path.join('dist', 'bar.exe'),
debug=True,
strip=False,
upx=False,
console=True )
=================================================================
The main problem in implementing this is that the bootloader currently
assumes there's only one .PKG file (global variables everywhere). And
you still need a (slim) PKG appended to each executable (the bootstrap
scripts).
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---