Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def get_py2exe_config(name, version, script, console):
    return {
        'console' if console else 'windows': [
            dict(
                script=script,
                # icon_resources=[(1, 'data\%s.ico' % (name,))],
            )
        ],
        'data_files':
            all_files('Microsoft.VC90.CRT', '..\lib\Microsoft.VC90.CRT') + 
            all_files('data'),
        'options':dict(
            py2exe=dict(
                ascii=True, # breaks unicode
                bundle_files=1, # breaks C extensions loaded at runtime
                dist_dir='dist/%s-%s-windows' % (name, version),
                dll_excludes=[
                    # Can we exclude these? Dunno
                    # "pywintypes26.dll",
                    # "pywintypes27.dll",
                ],
                optimize=2,
                excludes=[
                    # silence warnings of missing modules
                    '_imaging_gif',
                    '_scproxy',
                    'clr',
                    'dummy.Process',
                    'email',
                    'email.base64mime',
                    'email.utils',
                    'email.Utils',
                    'ICCProfile',
                    'Image',
                    'IronPythonConsole',
                    'modes.editingmodes',
                    'startup',
                    'System',
                    'System.Windows.Forms.Clipboard',

                    # filter unused .pyd files
                    '_hashlib',
                    '_imaging',
                    '_multiprocessing',
                    '_ssl',
                    '_socket',
                    'bz2',
                    'pyexpat',
                    'pyreadline',
                    'select',
                    'win32api',
                    'win32pipe',

                    # filter unused .pyo files in library.zip
                    'calendar',
                    'cookielib',
                    'difflib',
                    'doctest',
                    'locale',
                    'optparse',
                    'pdb',
                    'pickle',
                    'pyglet.window.xlib',
                    'pyglet.window.carbon',
                    'pyglet.window.carbon.constants',
                    'pyglet.window.carbon.types',
                    'subprocess',
                    'tarfile',
                    'threading',
                    'unittest',
                    'urllib',
                    'urllib2',
                    'win32con',
                    'zipfile',
                ],
            ),
        ),
        'zipfile': None,
    }
        


src/p/y/pyls-0.1.3/setup_utils/get_config.py   pyls(Download)
from os.path import abspath, dirname, isfile, join
from pprint import pprint
import sys
 
from .py2exe import get_py2exe_config
def get_config(name, version, script, console=False):
    config = get_sdist_config(name, version, script)
    config.update( get_py2exe_config(name, version, script, console) )
 
    if '--verbose' in sys.argv: