Distributing applications that use 3rd party modules
eliben
eliben at gmail.com
Sat May 17 14:35:32 EDT 2008
On May 17, 8:54 pm, "Terry Reedy" <tjre... at udel.edu> wrote:
> "eliben" <eli... at gmail.com> wrote in message
>
> news:b439e7f0-685b-46b6-b0ea-3161cc548868 at m45g2000hsb.googlegroups.com...
> | Is there a simple way to find out which packages are used by my
> | script ?
>
> Ggrep for import statements?
This isn't very comprehensive :-)
> (But that only only gives direct dependencies.)
> Does py2exe have an option to output the list it collects?|
> I think people have mentioned such here.
Digging around the standard library documentation, I came upon the
'modulefinder' module, which seems to be able to do what I want, at
least in terms of finding all the modules used. I wonder how difficult
it should be to wrap something around modulefinder that copies all the
relevant modules into a local directory and modifies sys.path
accordingly.
Eli
More information about the Python-list
mailing list