Exemple #1
0
                'pangocairo',
                'gio',
            ],
        }
    }
    args['zipfile'] = 'library.zip'

    data_files.append(('', ['msvcr90.dll', 'msvcp90.dll', 'msvcm90.dll']))
    manifest = read('Microsoft.VC90.CRT.manifest')
    args['windows'][0]['other_resources'] = [(24, 1, manifest)]


elif sys.platform == 'darwin':
    import py2app
    from modulegraph.find_modules import PY_SUFFIXES
    PY_SUFFIXES.append('')
    args['app'] = [os.path.join('bin', 'tryton')]
    args['options'] = {
        'py2app': {
            'argv_emulation': True,
            'includes': ('pygtk, gtk, glib, cairo, pango, pangocairo, atk, '
                'gobject, gio, gtk.keysyms'),
            'resources': 'tryton/plugins',
            'frameworks': 'librsvg-2.2.dylib',
            'plist': {
                'CFBundleIdentifier': 'org.tryton',
                'CFBundleName': 'Tryton',
            },
            'iconfile': os.path.join('share', 'pixmaps', 'tryton',
                'tryton.icns'),
        },
Exemple #2
0
    True,
    'MinimumSystemVersion':
    '10.13.0',
    'NSRequiresAquaSystemAppearance':
    False,
    'NSQuitAlwaysKeepsWindows':
    False,
    'ApplePersistenceIgnoreState':
    True
}

#find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])

from modulegraph.find_modules import PY_SUFFIXES

PY_SUFFIXES.append('')

gtk_data_dirs = [
    'etc/fonts',
    'etc/gtk-3.0',
    'lib/gdk-pixbuf-2.0',
    'lib/girepository-1.0',
    'share/fontconfig',
    'share/glib-2.0',
    'share/gtksourceview-4',
    #'share/icons',
]

gtk_data_files = []
for data_dir in gtk_data_dirs:
    local_data_dir = os.path.join(sys.prefix, data_dir)
Exemple #3
0
            "excludes": ["Tkconstants", "Tkinter", "tcl"],
            "includes": ["raven.events", "raven.processors"],
        }
    }
    args["zipfile"] = "library.zip"

    data_files.append(("", ["msvcr90.dll", "msvcp90.dll", "msvcm90.dll"]))
    manifest = read("Microsoft.VC90.CRT.manifest")
    args["windows"][0]["other_resources"] = [(24, 1, manifest)]


elif sys.platform == "darwin":
    import py2app
    from modulegraph.find_modules import PY_SUFFIXES

    PY_SUFFIXES.append("")
    args["app"] = [os.path.join("bin", "tryton")]
    args["options"] = {
        "py2app": {
            "argv_emulation": True,
            "includes": ("pygtk, gtk, glib, cairo, pango, pangocairo, atk, " "gobject, gio, gtk.keysyms"),
            "resources": "tryton/plugins, tryton/data",
            "frameworks": "librsvg-2.2.dylib, libjpeg.9.dylib, libtiff.5.dylib",
            "plist": {"CFBundleIdentifier": "org.tryton", "CFBundleName": "Tryton"},
            "iconfile": os.path.join("tryton", "data", "pixmaps", "tryton", "tryton.icns"),
        }
    }


def get_version():
    init = read(os.path.join("tryton", "__init__.py"))