Te paso mi setup.py:

manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (c) Microsoft Corporation.  All rights reserved. -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <noInheritable/>
    <assemblyIdentity
        type="win32"
        name="Microsoft.VC90.CRT"
        version="9.0.21022.8"
        processorArchitecture="x86"
        publicKeyToken="1fc8b3b9a1e18e3b"
    />
    <file name="msvcr90.dll" />
</assembly>
"""

from distutils.core import setup
import py2exe
from glob import glob


class Target:
   def __init__(self, **kw):
       self.__dict__.update(kw)
       # for the versioninfo resources
       self.version = "1.0"
       self.company_name = "AUTOR"
       self.copyright = "AUTOR"
       self.name = "puntos"

ssystem = Target(
   # used for the versioninfo resource
   description = "puntos",
   # what to build
   script = "puntos.py",
   icon_resources = [(1, "./images/icon.ico")],
   dest_base = "puntos")

setup(
    options = {"py2exe": {"compressed": 1,
                          "optimize": 0,
                          "bundle_files": 1,
                          }},
    data_files = [
                ("Microsoft.VC90.CRT", glob(r'C:\Microsoft.VC90.CRT\*.*')),
#dentro de la carpeta Microsoft.VC90.CRT tengo un ficheero llamado Microsoft.VC90.CRT.manifest y otro llamado msvcr90.dll
                './preferencias.ini',
                ],
    zipfile = None,
    windows = [ssystem]
    )



En 2010/07/09 18:29, Jean Carlos Rodrìguez escribiu:
Hola les comento estoy haciendo un ejecutable con py2exe,
from distutils.core import setup
import py2exe
import sys

sys.argv.append('py2exe')
setup(windows = [
     {
     "script": "nombre.py",
     "icon_resources": [(1, "Icono/icono.ico")]
     }
     ],
     options={"py2exe":{"includes":["sip"],
     }}
     )

Es el mismo script que utilizaba en las versiones anteriores de python, este me 
realiza el ejcutable y cuando le doy doble click, no hace nada ni me error, uso
python 2.6.5
PyQt-Py2.6-gpl-4.7-1
py2exe-0.6.9.win32-py2.6

Gracias




_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a