473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1786
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 ActivePython-2.2.1-222. In the sample below, commenting out...
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 move it to another WinMe machine, trying to run...
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 programs, able to run without requiring a Python...
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 programs, able to run without requiring a Python...
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 programs, able to run without requiring a Python...
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 http://www.py2exe.org/index.cgi/TixSetup and it copies the dlls into the dist...
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 programs, able to run without requiring a Python...
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 programs, able to run without requiring a Python...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.