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?
>
> Details:
> I have two particular packages that need help (because I use a funny
> method to import them, so pyinstaller has no way to know I need them):
>
> - A pure python package which is only partly imported. It also contains
> various non-python resource files, so I can't easily use Tree (rules to
> exclude all non-python code would be messy).
>
> I tried:
> pyz = PYZ(a.pure + [("foo", path-to-foo, "PySource")])
> but it didn't help. The missing modules were still missing.
>
> I tried:
> pyz = PYZ(a.pure + Tree(path-to-foo))
> but it choked. No surprise, since it was bringing in non-Python files
> (though it actually complained about a python file so there are probably
> multiple things wrong with this approach).
>
> - matplotlib (a mix of python and C extensions)
>
> I think I can figure out how to handle the data files (though a recipe
> would be welcome). I just want to how to tell it to look for the
> matplotlib package itself. It's a mix of python and C extensions.
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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---