from distutils.core import setup import py2exe import glob lnf_manifest = """ %s """ packages = ['encodings'] try: import _xmlplus except ImportError: pass else: packages.append('_xmlplus') setup_args = { 'name': 'Tahoe', 'description': 'Allmydata Tahoe distributated storage', 'author': 'Allmydata, Inc.', 'windows': [ { 'script': 'confwiz.py', 'icon_resources': [(1, 'amdicon.ico')], 'other_resources': [(24,1,lnf_manifest%'Allmydata Tahoe Config Wizard')], }, ], 'console': [ 'tahoe.py', ], 'service': [ 'tahoesvc', ], 'data_files': [ ('.', [ ],), ('pkg_resources/allmydata/web', glob.glob('../src/allmydata/web/*')), ('winfuse', glob.glob('./winfuse/*')), ], 'zipfile' : 'library.zip', 'options': { "py2exe": { "excludes": [ ], "includes": [ ], "packages": packages, #"optimize" : 2, }, }, } if __name__ == '__main__': setup(**setup_args) _junk = py2exe # appease pyflakes del _junk