mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 07:52:38 +00:00
0307f29d7f
when building the py2exe package, glob src/allmydata/web/* into web/ within the dist
46 lines
840 B
Python
46 lines
840 B
Python
from distutils.core import setup
|
|
import py2exe
|
|
|
|
import glob
|
|
|
|
setup_args = {
|
|
'name': 'Tahoe',
|
|
'description': 'Allmydata Tahoe distributated storage',
|
|
'author': 'Allmydata, Inc.',
|
|
'windows': [
|
|
],
|
|
'console': [
|
|
'tahoe.py',
|
|
],
|
|
'service': [
|
|
'tahoesvc',
|
|
],
|
|
'data_files': [
|
|
('.', [
|
|
],),
|
|
('web', glob.glob('../src/allmydata/web/*')),
|
|
],
|
|
'zipfile' : 'library.zip',
|
|
'options': {
|
|
"py2exe": {
|
|
"excludes": [
|
|
"pkg_resources",
|
|
],
|
|
"includes": [
|
|
],
|
|
"packages": [
|
|
"encodings",
|
|
"_xmlplus",
|
|
],
|
|
#"optimize" : 2,
|
|
},
|
|
},
|
|
}
|
|
|
|
if __name__ == '__main__':
|
|
setup(**setup_args)
|
|
|
|
|
|
_junk = py2exe # appease pyflakes
|
|
del _junk
|