error entre py2exe y python25 es urgente
Flavio Percoco
flaper87 en gmail.com
Vie Dic 22 19:41:11 CET 2006
este es el setup.py:
# Requires wxPython. This sample demonstrates:
#
# - single file exe using wxPython as GUI.
from distutils.core import setup
import py2exe
import sys
# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append("-q")
class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
# for the versioninfo resources
self.version = "1.0"
self.company_name = "P&P Sistemas"
self.copyright = "Flavio Percoco"
self.name = "Femme"
################################################################
# A program using wxPython
# The manifest will be inserted as resource into test_wx.exe. This
# gives the controls the Windows XP appearance (if run on XP ;-)
#
# Another option would be to store it in a file named
# test_wx.exe.manifest, and copy it with the data_files option into
# the dist-dir.
#
manifest_template = '''
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="5.0.0.0"
processorArchitecture="x86"
name="%(prog)s"
type="win32"
/>
<description>%(prog)s Program</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
'''
RT_MANIFEST = 24
ssystem = Target(
# used for the versioninfo resource
description = "Control de Ciclos menstruales",
# what to build
script = "App.py",
other_resources = [(RT_MANIFEST, 1, manifest_template %
dict(prog="Femme"))],
icon_resources = [(1, "libe.ico")],
dest_base = "Femme")
################################################################
setup(
options = {"py2exe": {"compressed": 1,
"optimize": 2}},
zipfile = "lib\shared.zip",
name="Femme",
description="Control de Ciclos menstruales",
windows = [ssystem],
)
--
Flavio Percoco Premoli, A.K.A. [Flaper87]
http://www.flaper87.com
Usuario registrado #436538
Key Fingerprint: CFC0 C67D FF73 463B 7E55 CF43 25D1 E75B E2DB 15C7
Más información sobre la lista de distribución Python-es