~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin Albisetti
  • Date: 2008-07-29 20:42:35 UTC
  • mto: This revision was merged to the branch mainline in revision 188.
  • Revision ID: argentina@gmail.com-20080729204235-nhhd02ll6vegonqp
Ignore build/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
 
#
3
 
# Copyright (C) 2008  Canonical Ltd.
4
 
#                     (Authored by Martin Albisetti <argentina@gmail.com>)
5
2
# This program is free software; you can redistribute it and/or modify
6
3
# it under the terms of the GNU General Public License as published by
7
4
# the Free Software Foundation; either version 2 of the License, or
15
12
# You should have received a copy of the GNU General Public License
16
13
# along with this program; if not, write to the Free Software
17
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
 
19
15
"""Loggerhead is a web viewer for projects in bazaar"""
20
16
 
21
 
 
22
 
from distutils.core import setup
23
 
import loggerhead
24
 
 
 
17
from distutils.core import setup, Command
 
18
from distutils.command.install_data import install_data
 
19
from distutils.dep_util import newer
 
20
from distutils.log import info
 
21
import glob
 
22
import os
 
23
import sys
 
24
 
 
25
 
 
26
if sys.version_info < (2, 4):
 
27
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
 
28
    sys.exit(1)
 
29
 
 
30
class InstallData(install_data):
 
31
    def run(self):
 
32
        install_data.run(self)
25
33
 
26
34
setup(
27
35
    name = "loggerhead",
28
 
    version = loggerhead.__version__,
 
36
    version = "1.6",
29
37
    description = "Loggerhead is a web viewer for projects in bazaar",
30
38
    license = "GNU GPL v2 or later",
31
39
    maintainer = "Michael Hudson",
32
40
    maintainer_email = "michael.hudson@canonical.com",
33
41
    scripts = ["start-loggerhead", "stop-loggerhead", "serve-branches"],
34
42
    packages = ["loggerhead",
35
 
                "loggerhead/apps",
36
 
                "loggerhead/controllers",
37
 
                "loggerhead/templates"],
38
 
    package_data = {"loggerhead": ["templates/*.pt",
39
 
                                   "static/css/*.css",
40
 
                                   "static/javascript/*.js",
41
 
                                   "static/javascript/yui/build/anim/*",
42
 
                                   "static/javascript/yui/build/base/*",
43
 
                                   "static/javascript/yui/build/cssbase/*",
44
 
                                   "static/javascript/yui/build/cssgrids/*",
45
 
                                   "static/javascript/yui/build/dd/*",
46
 
                                   "static/javascript/yui/build/dump/*",
47
 
                                   "static/javascript/yui/build/get/*",
48
 
                                   "static/javascript/yui/build/json/*",
49
 
                                   "static/javascript/yui/build/node/*",
50
 
                                   "static/javascript/yui/build/queue/*",
51
 
                                   "static/javascript/yui/build/yui/*",
52
 
                                   "static/javascript/yui/build/attribute/*",
53
 
                                   "static/javascript/yui/build/cookie/*",
54
 
                                   "static/javascript/yui/build/cssfonts/*",
55
 
                                   "static/javascript/yui/build/cssreset/*",
56
 
                                   "static/javascript/yui/build/dom/*",
57
 
                                   "static/javascript/yui/build/event/*",
58
 
                                   "static/javascript/yui/build/io/*",
59
 
                                   "static/javascript/yui/build/loader/*",
60
 
                                   "static/javascript/yui/build/oop/*",
61
 
                                   "static/javascript/yui/build/substitute/*",
62
 
                                   "static/javascript/yui/build/yui-base/*",
63
 
                                   "static/images/*"]},
64
 
    data_files = [
65
 
        ('share/man/man1', ['start-loggerhead.1',
66
 
                            'stop-loggerhead.1',
67
 
                            'serve-branches.1']),
68
 
        ('share/doc/loggerhead', ['loggerhead.conf.example']),
69
 
        ],
 
43
               ],
 
44
    package_data = {"loggerhead":["templates/*"]},
 
45
    data_files=[
 
46
                ('share/man/man1',['start-loggerhead.1', 'stop-loggerhead.1']),
 
47
                ('share/doc/loggerhead', ['loggerhead.conf.example'])
 
48
               ],
 
49
    cmdclass={'install_data':InstallData}
70
50
    )
 
51