469,270 Members | 1,078 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

py2exe copies to much dlls

Hi,

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?

regards,
Achim
Jul 18 '05 #1
2 1671
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 setup.py script you used and
the command line:

# test script

print 'Hello, world!'

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

-Peter
Jul 18 '05 #2
py2exe finds module paths by parsing your python source file.
I think it also uses the PYTHONPATH environmenet variable.
So if your PYTHONPATH contains $PYTHON/lib-tk (which it normally
does), py2exe will copy the tcl/tk dlls too into the build
directory, which are needed for tkinter.

Try editing the PYTHONPATH variable and remove the lib-tk
directory from it.

HTH

-Anand

Peter Hansen <pe***@engcorp.com> wrote in message news:<3F***************@engcorp.com>...
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 setup.py script you used and
the command line:

# test script

print 'Hello, world!'

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

-Peter

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
5 posts views Thread by Grant Edwards | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
reply views Thread by devnew | last post: by
1 post views Thread by Jimmy Retzlaff | last post: by
reply views Thread by Larry Bates | last post: by
reply views Thread by Jimmy Retzlaff | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.