Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > py2exe 0.6.2 version resources

Reply
Thread Tools

py2exe 0.6.2 version resources

 
 
klaus.roedel@vipco.de
Guest
Posts: n/a
 
      09-20-2005
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

 
Reply With Quote
 
 
 
 
Thomas Heller
Guest
Posts: n/a
 
      09-20-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
about py2exe, I installed it, but can't find py2exe.exe in my computer. python Python 3 05-22-2006 02:08 PM
[py2exe] py2exe and datetime -> No module named datetime F. GEIGER Python 0 08-16-2004 01:13 PM



Advertisments