py2exe copies to much dlls

Peter Hansen peter at
Thu Sep 4 15:25:38 CEST 2003

Achim Domma wrote:
> I managed to build a simple com server with py2exe. My script only imports
> codecs and re, but the dist folder contains tcl84.dll, tk84.dll and
> win32ui.pyd. Can somebody tell me why? And how to prevent this? I don't do
> any gui stuff, so where does the dependency comes from?

Can you py2exe the following script and see what you get?  If it's
still the same stuff, post the py2exe script you used and
the command line:

# test script

print 'Hello, world!'

(Yes, that's all...  :-)


More information about the Python-list mailing list