From fb8db60847a83afb1a2ae25a86285ed1132884b1 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Fri, 14 Aug 2009 18:05:37 +0200 Subject: Install web part of collagen to /usr/share --- setup.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 64fb153..9b23efc 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,19 @@ #!/usr/bin/env python from distutils.core import setup +import os + +VERSION='1.0' + +webfiles = [] +for dirpath, dirnames, filenames in os.walk('web/'): + dirprefix = "/usr/share/collagen-%s/%s" % (VERSION, dirpath) + for fname in filenames: + webfiles.append((dirprefix, [os.path.join(dirpath, fname)])) + setup(name='Collagen', - version='1.0', + version=VERSION, description='Gentoo portage tree-wide files database', author='Stanislav Ochotnicky', author_email='stanislav@ochotnicky.com', @@ -17,6 +27,7 @@ setup(name='Collagen', 'collagen/common', 'collagen/protocol', 'collagen/util/'], - scripts=['src/matchbox.py', 'src/tinderbox.py','util/mktinderboxchroot.sh'] + scripts=['src/matchbox.py', 'src/tinderbox.py','util/mktinderboxchroot.sh'], + data_files = webfiles ) -- cgit v1.2.3-65-gdbad