On 11/3/2008 2:33 PM, JKP wrote: > Hi there > > I wanted to request a new feature, which should not be hard to > implement at all. I have several programs which I package using > PyInstaller and I'd like to share a python runtime dll between them. > I know from looking at your launch.c code that you allow the user to > put a dll in the same directory as the script (or exe file as it > becomes). My request is to allow people to use a dll found in their > PATH. > > Our system installer for the software I develop puts a python26.dll in > our own dlls directory. I'd like a way to let my PyInstaller apps to > reference that dll just like any other applications would reference a > required dll in our system. > > If I can do this I can save quite a substantial amount of space > overall. I understand it's not something everyone would like but > having the flexibility would be nice. I'm happy to submit a patch > that would search the PATH for the python runtime if required.
To do this, it *should* be sufficient to exclude python26.dll from the libraries being included in the PKG file. You can hand-edit the .spec file: go throught the toc that's being passed to the PKG() call, and remove the python26.dll. OTOH, what you really want is to share as much as possible between your executables. I'm going to add support for this quite soon (probably within November, since it's a customer request): the idea is that a single .pkg file will be built, containing all the dyanamic libraries and Python modules required for all the binaries. Then, you would simply get lightweight executables with only the boot scripts inside. -- 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 -~----------~----~----~----~------~----~------~--~---
