示例#1
0
        kwargs['console'] += [
            'rece.py', 'receb.py', 'recex.py', 'wsaa.py', 'wsfex.py',
            'wsbfe.py'
        ]

    # visual application
    if 'pyrece' in globals():
        # find pythoncard resources, to add as 'data_files'
        pycard_resources = []
        for filename in os.listdir('.'):
            if filename.find('.rsrc.') > -1:
                pycard_resources += [filename]

        kwargs['console'] += [
            Target(module=pyrece,
                   script="pyrece.py",
                   dest_base="pyrece_consola"),
        ]
        kwargs['windows'] += [
            Target(module=pyrece, script='pyrece.py'),
        ]
        data_files += [
            WX_DLL,
            ("plantillas", [
                "plantillas/logo.png",
                "plantillas/factura.csv",
            ]),
            ("datos", [
                "datos/facturas.csv",
                "datos/facturas.json",
                "datos/facturas.txt",
示例#2
0
 description="Interfaz PyAfipWs I25 %s",
 long_description=__doc__,
 author="Mariano Reingart",
 author_email="*****@*****.**",
 url="http://www.sistemasagiles.com.ar",
 license="GNU GPL v3",
 com_server=[
     {
         'modules': 'pyi25',
         'create_exe': True,
         'create_dll': True
     },
 ],
 console=[
     Target(module=sys.modules[__name__],
            script='pyi25.py',
            dest_base="pyi25_cli")
 ],
 windows=[
     Target(module=sys.modules[__name__],
            script="pyi25.py",
            dest_base="pyi25_win")
 ],
 options={
     'py2exe': {
         'includes': [],
         'optimize':
         2,
         'excludes': [
             "pywin", "pywin.dialogs", "pywin.dialogs.list",
             "win32ui", "distutils.core", "py2exe", "nsis"
示例#3
0
    
    # legacy webservices & utilities:
    if 'pyafipws' in globals():
        kwargs['com_server'] += ["pyafipws"]
        kwargs['console'] += ['rece.py', 'receb.py', 'recex.py', 'rg1361.py', 'wsaa.py', 'wsfex.py', 'wsbfe.py']

    # visual application
    if 'pyrece' in globals():
        # find pythoncard resources, to add as 'data_files'
        pycard_resources=[]
        for filename in os.listdir('.'):
            if filename.find('.rsrc.')>-1:
                pycard_resources+=[filename]

        kwargs['console'] += [
            Target(module=pyrece, script="pyrece.py", dest_base="pyrece_consola"),
            ]
        kwargs['windows'] += [
            Target(module=pyrece, script='pyrece.py'),
            ]
        data_files += [
            (".", [
            "C:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\MSVCP71.dll",
            "C:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\MSVCR71.dll",
            "C:\python25\lib\site-packages\wx-2.8-msw-unicode\wx\gdiplus.dll",
            ]), 
            ("plantillas", ["plantillas/logo.png", ]),
            ("datos", ["datos/facturas.csv", "datos/facturas.json", "datos/facturas.txt", ])
            ]
        data_files.append((".", pycard_resources))
示例#4
0
    kwargs['windows'] = []

    # add 32bit or 64bit tag to the installer name
    import platform
    __version__ += "-" + platform.architecture()[0]

    # visual application
    # find pythoncard resources, to add as 'data_files'
    pycard_resources = []
    for filename in os.listdir('.'):
        if filename.find('.rsrc.') > -1:
            pycard_resources += [filename]

    kwargs['console'] += [
        Target(module=factura,
               script="factura.pyw",
               dest_base="factura_consola"),
    ]
    kwargs['windows'] += [
        Target(module=factura, script='factura.pyw'),
    ]
    data_files += [
        ("plantillas", [
            "plantillas/logo.png",
            "plantillas/factura.csv",
            "plantillas/recibo.csv",
        ]),
        ("cache", glob.glob("cache/*")),
        #("datos", ["datos/facturas.csv", "datos/facturas.json", "datos/facturas.txt", ])
        (".", [
            "sistemas-agiles.png",