def getcxfreezeoptions(defaults): defaults.update( { 'app': [{'script': 'src/bp.py', 'dest_base': 'bitpim'}], } ) defaults['options']['cxfreeze']['includes']=phones.getallmodulenames() return defaults
def getpy2exeoptions(defaults): defaults.update( { 'windows': [{ 'script': 'src/bp.py', 'dest_base': 'bitpim', }], } ) defaults['options']['py2exe']['includes']=phones.getallmodulenames() return defaults
def getpy2exeoptions(defaults): defaults.update( { 'windows': [{ 'script': 'src/bp.py', 'dest_base': 'bitpim', }], } ) defaults['options']['py2exe']['includes']=phones.getallmodulenames() defaults['options']['py2exe']['compressed']=0 # make setup.exe smaller but installed code larger return defaults
def getpy2appoptions(defaults): defaults.update( { 'app': [{'script': 'src/bp.py',}], } ) defaults['options']['py2app']['includes']=phones.getallmodulenames() defaults['options']['py2app']['plist']['CFBundleHelpBookFolder']="BitPim Help" defaults['options']['py2app']['plist']['CFBundleHelpBookName']="BitPim Help" return defaults
def getcxfreezeoptions(defaults): global lazyimportmodules defaults.update( { 'app': [{'script': 'src/bp.py', 'dest_base': 'bitpim'}], } ) defaults['options']['cxfreeze']['includes']=phones.getallmodulenames()+\ getallencodingsmodules()+\ lazyimportmodules return defaults
def getpy2exeoptions(defaults): global lazyimportmodules defaults.update( { 'windows': [{ 'script': 'src/bp.py', 'dest_base': 'bitpimw', }], 'console': [{ 'script': 'src/bp.py', 'dest_base': 'bitpim', }], } ) defaults['options']['py2exe']['includes']=phones.getallmodulenames()+\ lazyimportmodules defaults['options']['py2exe']['compressed']=0 # make setup.exe smaller but installed code larger return defaults
def getpy2appoptions(defaults): global lazyimportmodules defaults.update( { 'app': [{'script': 'src/bp.py',}], } ) defaults['options']['py2app']['includes']=phones.getallmodulenames()+\ lazyimportmodules defaults['options']['py2app']['plist']['CFBundleHelpBookFolder']="BitPim Help" defaults['options']['py2app']['plist']['CFBundleHelpBookName']="BitPim Help" return defaults
def generate_udevrules(): """Generate the udev rules file based on all the known VIDs and PIDs""" global udevrules_filename, udevrules_line _ids={} for _f in phones.getallmodulenames(): _profile=importas(_f) if hasattr(_profile.Profile, 'usbids'): for _id in _profile.Profile.usbids: _ids[_id]=True _rules=[] for _entry in _ids: _rules.append(udevrules_line%(_entry[1], _entry[0])) _f=file('resources/%s'%udevrules_filename, 'wt').write('\n'.join(_rules))