473,503 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

py2exe 0.6.2 version resources

Hi @all,

I've implementet a simple setup script for my application with py2exe.
The setup.py works fine, but now I want to add version resources to my
*.exe-file. But how can I do it?
I've tested it with the setup.cfg, but that doesn't work. I alwayse
became the errormessage:
error: error in setup.cfg: command 'py2exe' has no such option
'version_legalcopyright'
until I've deleted all options.
I'm using python 2.4.1 and py2exe 0.6.2 on Windows XP SP2.
Thanks for any help.

Greets,
Klaus

PS:
Here my example setup.py:

from distutils.core import setup
import glob
import py2exe

install = dict(script="startApp.py",
dest_base="My Application",
icon_resources=[(1, "img\\icon.ico")])

opts = dict(py2exe= dict(dist_dir="Application"))

setup(name = 'My Application',
author="Klaus Rödel",
data_files=[("img", glob.glob("img\\*.png")), ("img",
glob.glob("img\\*.ico")), ("", ["my_dll.dll"])],
options = opts,
windows=[install])

And here my example setup.cfg:

[py2exe]
version-companyname=which ever
version-filedescription=the little application name
version-fileversion=0.1.0
version-legalcopyright=Hmm...
version-legaltrademarks=blah blah
version-productname=the little applications product name
version-productversion=0.1.0

Sep 20 '05 #1
1 2545
kl**********@vipco.de writes:
Hi @all,

I've implementet a simple setup script for my application with py2exe.
The setup.py works fine, but now I want to add version resources to my
*.exe-file. But how can I do it?
I've tested it with the setup.cfg, but that doesn't work. I alwayse
became the errormessage:
error: error in setup.cfg: command 'py2exe' has no such option
'version_legalcopyright'
until I've deleted all options.
I'm using python 2.4.1 and py2exe 0.6.2 on Windows XP SP2.
Thanks for any help.
In py2exe 0.5 and 0.6 you can no longer specify the versionresource in
setup.cfg. The advanced sample in
lib\site-packages\py2exe\samples\advanced demonstrated how to do it.
Greets,
Klaus


Thomas
Sep 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2236
by: Thomas Heller | last post by:
**py2exe 0.5.0** (finally) released =================================== py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without...
3
5692
by: Werner Merkl | last post by:
Hi, Python is really great, for small to big programs. For my colleagues and some circumstances I sometimes need to "compile" a script using py2exe. Cause I use Windows, I like to use the...
0
1301
by: Thomas Heller | last post by:
**py2exe 0.5.2** released ========================= py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python...
0
1543
by: Durumdara | last post by:
Hi ! I have an application that I compile to exe. 1.) I want to compile main.ico into exe, or int zip. Can I do it ? 2.) Can I compile the result to my specified directory, not into the...
0
13434
bartonc
by: bartonc | last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had...
1
2963
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
1491
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
1
2284
by: em00100 | last post by:
Dear All, I have try to use the py2exe to compile the DLL file first i write the simple python script "test01.py": def test001(): return 1 then write the setup.py: # setup.py
0
1017
by: Leo Lee | last post by:
Hi, I think I have already solved this problem while I am digging into the installation sources. I found this: C:\Python25\Lib\site-packages\py2exe\samples\singlefile\gui\setup.py # Requires...
0
7205
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
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...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.