472,330 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,330 software developers and data experts.

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 1746
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and...
5
by: Grant Edwards | last post by:
Using py2exe under WinMe, I bundled up a python program containing a single line: print "hello world" When I zip up the dist directory and...
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.4 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows...
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.5 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows...
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.6 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows...
0
by: devnew | last post by:
I wrote an app that uses some Tix widgets and wanted to make an exe using py2exe .i used the setup script as given in...
1
by: Jimmy Retzlaff | last post by:
py2exe 0.6.8 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows...
0
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.