mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 03:06:41 +00:00
520cbb0165
there are many and various fiddly details that were involved in this process on mountain view. This is a stripped down version of the build process used there. there's hence a good chance that one or two necessary details got stripped down through the cracks. this provides a py2exe setup.py to build a tahoe.exe and a tahoesvc.exe the former is equivalent to bin/tahoe, but without the start/stop commands. the latter is a windows service that instantiates a client whose basedir is found in the registry.
42 lines
740 B
Python
42 lines
740 B
Python
from distutils.core import setup
|
|
import py2exe
|
|
|
|
setup_args = {
|
|
'name': 'Tahoe',
|
|
'description': 'Allmydata Tahoe distributated storage',
|
|
'author': 'Allmydata, Inc.',
|
|
'windows': [
|
|
],
|
|
'console': [
|
|
'tahoe.py',
|
|
],
|
|
'service': [
|
|
'tahoesvc',
|
|
],
|
|
'data_files': [
|
|
('.', [
|
|
],),
|
|
],
|
|
'zipfile' : 'library.zip',
|
|
'options': {
|
|
"py2exe": {
|
|
"excludes": [
|
|
],
|
|
"includes": [
|
|
],
|
|
"packages": [
|
|
"encodings",
|
|
"_xmlplus",
|
|
],
|
|
#"optimize" : 2,
|
|
},
|
|
},
|
|
}
|
|
|
|
if __name__ == '__main__':
|
|
setup(**setup_args)
|
|
|
|
|
|
_junk = py2exe # appease pyflakes
|
|
del _junk
|