diff options
author | 2009-08-14 18:05:37 +0200 | |
---|---|---|
committer | 2009-08-14 18:05:37 +0200 | |
commit | fb8db60847a83afb1a2ae25a86285ed1132884b1 (patch) | |
tree | 7ceee58a1334d8109c60c752da4a4832e89bcd82 | |
parent | Add dev-python/django to DEPEND in ebuild (diff) | |
download | collagen-fb8db60847a83afb1a2ae25a86285ed1132884b1.tar.gz collagen-fb8db60847a83afb1a2ae25a86285ed1132884b1.tar.bz2 collagen-fb8db60847a83afb1a2ae25a86285ed1132884b1.zip |
Install web part of collagen to /usr/share
-rw-r--r-- | setup.py | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 ) |