X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=07e121be48ccead5467da39edc92b02d773b5e4e;hb=refs%2Fheads%2Ffed4fire;hp=d27df2b18ac470d67c55469eaae9db9e274adf80;hpb=0f8ce7d0964159ebef736e2fc8c26edd6f18961d;p=myslice.git diff --git a/setup.py b/setup.py index d27df2b1..07e121be 100644 --- a/setup.py +++ b/setup.py @@ -15,15 +15,26 @@ packages= [ os.path.dirname(init) for init in (glob("*/__init__.py")+glob("*/*/_ print packages # Avoid troubles : clean /usr/share/unfold/ -shutil.rmtree('/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' ]),