In article <[EMAIL PROTECTED]>, "Ralf Schmitt" <[EMAIL PROTECTED]> wrote:
> On 1/22/07, Russell E. Owen <[EMAIL PROTECTED]> > wrote: > > > > Any hints on forcing include of full packages? For py2exe I just list > > these as the "packages" argument. Is there some equivalent for > > pyinstaller? > >... > > You can always write a dummy function, which imports the needed modules: > > def __dependencies(): > import matplotlib > import some.other.package > > The advantage is that it will work with any freezing tool. I wish it was that simple. The problem is that the packages in question do not bring all their code in when imported. I want to include *all* the sub-modules and sub-packages because some dynamically loaded code may use them; it's impossible to predict exactly what may be needed in advance. I can imagine writing some fancy code that searches a package to find all sub-packages and sub-modules, and then import all that. But surely there's some mechanism in pyinstaller to support that already? -- Russell --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
