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_legalc opyright'
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="st artApp.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=whi ch 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 1 2554 kl**********@vi pco.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_legalc opyright' 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\advanc ed demonstrated how to do it.
Greets, Klaus
Thomas This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 requiring a
python installation.
News
Python 2.3 is required, because the new zipimport feature is used.
|
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 (Windows) ability, to add some
version infos, comments, etc to the exe file.
If I use explorer to check, these properties are visible and correct.
|
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 installation. Console and Windows (GUI) applications, windows
NT services, exe and dll COM servers are supported.
This is a bugfix release.
|
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 dist ?
I want to structure my projects like this:
|
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 to search hi and lo for the example of how to exclude Tkinter. Coming soon: scipy includes and numpy include that gets rid of complaints of missing modules that are fantom errors.
# Py2Exe version 6.3 setup file for wxPython GUI programs.
#...
| |
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 installation. Console and Windows (GUI) applications, Windows
NT services, exe and dll COM servers are supported.
Changes in 0.6.8:
|
by: Larry Bates |
last post by:
Jimmy Retzlaff wrote:
Everyone,
Thanks for all your hard work on py2exe, it is greatly appreciated.
-Larry Bates
|
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
|
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 wxPython. This sample demonstrates:
#
# - single file exe using wxPython as GUI.
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |