X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=4f47f7b705d9849aa8edbf9d8127abe6a62f2606;hb=28bd593d5a6cca6cc6d405dbbdd98ce89b3b4ea2;hp=c5890d5476452819cb528a8b758f7893b35999be;hpb=289fa91a9d049e67c12e96ad8f9fb797ec6f9875;p=unfold.git diff --git a/setup.py b/setup.py index c5890d54..4f47f7b7 100644 --- a/setup.py +++ b/setup.py @@ -17,13 +17,23 @@ print packages # Avoid troubles : clean /usr/share/unfold/ #shutil.rmtree('/usr/share/unfold/') +def images (dir): + return glob( dir+"/*.png") + glob ( dir+"/*.gif") +def javascript (dir): + return glob( dir+"/*.js") +def stylesheets (dir): + return glob( dir+"/*.css") + setup(packages = packages, # xxx somehow this does not seem to show up in debian packaging scripts = [ 'apache/unfold-init-ssl.sh' ], data_files = [ - ( '/usr/share/unfold/static/js', glob ('static/js/*')), - ( '/usr/share/unfold/static/css', glob ('static/css/*')), - ( '/usr/share/unfold/static/img', glob ('static/img/*')), + ( '/usr/share/unfold/static/js', javascript('static/js')), + ( '/usr/share/unfold/static/css', stylesheets ('static/css')), + ( '/usr/share/unfold/static/img', images ('static/img')), +# for portal/ + ( '/usr/share/unfold/static/img/institutions', images ('static/img/institutions')), + ( '/usr/share/unfold/static/img/testbeds', images ('static/img/testbeds')), ( '/usr/share/unfold/static/fonts', glob ('static/fonts/*')), ( '/usr/share/unfold/templates', glob ('templates/*')), ( 'apache', [ 'apache/unfold.conf', 'apache/unfold-ssl.conf', 'apache/unfold.wsgi' ]),