ship data files

This commit is contained in:
Frédéric Péters 2011-04-21 13:50:17 +00:00
parent 670c5eabad
commit 4290f2c971
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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/')
)