[Py2exe-users] Re: How to add a package loaded at run time
by Greg other posts by this author
Sep 25 2004 11:40PM messages near this date
[Py2exe-users] How to add a package loaded at run time
|
[Py2exe-users] Re: How to add a package loaded at run time
Thomas Heller <theller <at> python.net> writes:
>
I got sidetracked and am just now coming back to this. Sorry for
the delay. Just the same, thanks for your help!
> Is dir\anotherdir on sys.path when py2exe runs? If so, you only need to
> tell py2exe to include them, for example with the command line switch
> '--includes dynamic1,dynamic2,dynamic3,dynamic4,dynamic5'.
Okay, this doesn't work. This simply copies it into the syspath, however,
the application is expecting to find it in a specific location, thusly, it
still fails. Changing the application is not an option.
>
> If it is not on sys.path, you must either extend the path that
> modulefinder uses by extending it in your setup script, additionally to
> the above command line switch.
I did this. It is now including it into the Library.zip file, just not
into the proper location. Accordingly, it fails to work at runtime.
>
> > I manually added these files to the library.zip file, and it worked,
> > but I'd much prefer an automated solution. What are my options here?
>
> For additional fun (?), you could extend py2exe so that it adds the files to
> the library.zip file after the build process is done - see
> py2exe\samples\extending\setup.py how to do this.
>
Looks like this is my only option. What a pain. This is surprisingly
frustrating as it appears to be a highly sought after option, and has it been
implemented into py2exe proper, it seems like it would be down right painless.
> Thomas
Thanks for you assistance! You help has been much appreciated.
Greg
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users
Thread:
Bruno Santos
Greg
Thomas Heller
E. A. Tacao
Bruno Santos
|