ship data files
This commit is contained in:
parent
670c5eabad
commit
4290f2c971
|
@ -6,4 +6,5 @@ recursive-include extra/ *.py
|
|||
recursive-include data/web/ *.html *.css *.png
|
||||
recursive-include data/themes/default/ *.html *.css *.png *.gif *.jpg *.js *.ezt
|
||||
recursive-include data/themes/alto/ *.html *.css *.png *.gif *.jpg *.js
|
||||
recursive-include data/vendor/ *.dat
|
||||
recursive-include wcs/qommon/static/ *.css *.png *.gif *.jpg *.js
|
||||
|
|
3
setup.py
3
setup.py
|
@ -10,7 +10,7 @@ if os.path.exists('wcs/wcs_cfg.py'):
|
|||
os.unlink('wcs/wcs_cfg.py')
|
||||
|
||||
def data_tree(destdir, sourcedir):
|
||||
extensions = ['.css', '.png', '.jpeg', '.jpg', '.gif', '.xml', '.html', '.js', '.ezt']
|
||||
extensions = ['.css', '.png', '.jpeg', '.jpg', '.gif', '.xml', '.html', '.js', '.ezt', '.dat']
|
||||
r = []
|
||||
for root, dirs, files in os.walk(sourcedir):
|
||||
l = [os.path.join(root, x) for x in files if os.path.splitext(x)[1] in extensions]
|
||||
|
@ -35,6 +35,7 @@ setup(
|
|||
scripts = ['wcsctl.py'],
|
||||
data_files = data_tree('share/wcs/web/', 'data/web/') + \
|
||||
data_tree('share/wcs/themes/', 'data/themes/') + \
|
||||
data_tree('share/wcs/vendor/', 'data/vendor/') + \
|
||||
data_tree('share/wcs/qommon/', 'wcs/qommon/static/')
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue