[Distutils] py2exe and eggs

Jay Parlar parlar at gmail.com
Tue Aug 16 15:28:58 CEST 2005

I know this topic has briefly been covered before
but I'm having some trouble with it.

I have an in-house app that uses RuleDispatch (and of course
PyProtocols). I used to just build them from cvs myself, but now I've
switched to using the eggs. Since I'm doing all the development on my
machine, and no one else will see my scripts, I don't worry about
pkg_resources.require(), I just simply import 'dispatch' and

py2exe doesn't like this at all though. Whatever mechanism it uses for
pulling in dependencies doesn't work with eggs.

If there is a solution, I'd prefer *not* to have to do anything
specific in my setup.py, for each egg. As time goes on, I'd like to
move more and more of my site-packages to eggs, and I don't want to
have to modify my setup.py everytime I switch another library to an

Any solutions to this? I don't mind a solution that requires me to add
something to setup.py that can automatically find any of the eggs I
use, but I'd really like to avoid adding something to setup.py for
*each* egg I use.

Thanks in advance,
Jay P.

More information about the Distutils-SIG mailing list