> -----Original Message-----
> From: patty.ackermann@... [mailto:patty.ackermann@...]
> Sent: 10 November 2008 19:04
> To: py2exe-users@...
> Subject: [Py2exe-users] ExeWithEggs Tutorial - What is 'eggdir'?
> I'm trying to do the procedures found under section
> "Including .egg files in your dist directory" of the
> ExeWithEggs Tutorial found here:
> In the example code, it mentions the variable 'eggdir'. Where
> is this instantiated, and what is its significance?
This thread may help:
I think getting eggs to work with py2exe partly depends on what level of
bundling you are aiming for. For my application, I install the eggs as
'egg directories' in py2exe's libdir. This requires a .pth file
containing the names of those directories, and at runtime you need to
call "site.addsitedir" so that the .pth file gets processed.
I actually implemented that a while ago. If I were going to try again
now, I would probably try and install the eggs so that the package
directory is directly in the libdir (rather than in a '.egg'
subdirectory), with the metadata in a <package>.egg-info alongside it.
That would remove the requirement for the .pth file and the call to
It's also worth looking into bbfreeze. I haven't used it on Windows yet,
but I use it on Linux and it works well and deals with eggs
automatically (and Ralf, the developer, was very helpful with the one
problem that I did have)
I hope that helps,