Alexander Belchenko schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> For installing one package (Pygments) I need to install setuptools too.
> But it seems that setuptools break py2exed application, if in application
> used explicitly standard module 'site'.
> Especially code like this:
> import site
> Works OK in python, but don't work in exe with traceback:
> File "bzrlib\version.pyc", line 39, in show_version
> File "site.pyc", line 73, in ?
> File "site.pyc", line 38, in __boot
> ImportError: Couldn't find the real 'site' module
> When I look at the log of 'setup.py py2exe', I'm see this line:
> byte-compiling E:\Python24\lib\site-packages\setuptools-0.6c3-py2.4.egg\site.py to site.pyc
> My own application don't use neither setuptools not pygments,
> but I'd like to have this libraries installed for other purposes.
> How can I force to use real site.py instead of setuptools one?
> And don't include setuptools to my py2exed application at all?
> Or I need to uninstall setuptools?
I have setuptools installed too, but cannot reproduce your problem.
Can you make a sort, self-contained test-case?