~loggerhead-team/loggerhead/trunk-rich

183.2.1 by John Arbash Meinel
Add Copyright information to most files.
1
#!/usr/bin/env python
2
# This program is free software; you can redistribute it and/or modify
3
# it under the terms of the GNU General Public License as published by
4
# the Free Software Foundation; either version 2 of the License, or
5
# (at your option) any later version.
6
#
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
# GNU General Public License for more details.
11
#
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
15
"""Loggerhead is a web viewer for projects in bazaar"""
16
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
1 by Robey Pointer
initial checkin
22
import os
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
23
import sys
181.1.5 by Martin Albisetti
Move version to __init__
24
import loggerhead
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
25
26
27
if sys.version_info < (2, 4):
28
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
29
    sys.exit(1)
30
31
class InstallData(install_data):
32
    def run(self):
33
        install_data.run(self)
58 by Robey Pointer
add setup.py info so an sdist tarball can be made
34
1 by Robey Pointer
initial checkin
35
setup(
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
36
    name = "loggerhead",
181.1.5 by Martin Albisetti
Move version to __init__
37
    version = loggerhead.__version__,
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
38
    description = "Loggerhead is a web viewer for projects in bazaar",
39
    license = "GNU GPL v2 or later",
40
    maintainer = "Michael Hudson",
41
    maintainer_email = "michael.hudson@canonical.com",
184 by Martin Albisetti
* Add start/stop scripts to setup, including serve-branches (Jelmer Vernooij)
42
    scripts = ["start-loggerhead", "stop-loggerhead", "serve-branches"],
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
43
    packages = ["loggerhead",
44
               ],
181.1.3 by Martin Albisetti
Include templates in setup
45
    package_data = {"loggerhead":["templates/*"]},
181.1.2 by Martin Albisetti
Removing left-over cruft from setup, and converting it to distutils
46
    data_files=[
47
                ('share/man/man1',['start-loggerhead.1', 'stop-loggerhead.1']),
48
                ('share/doc/loggerhead', ['loggerhead.conf.example'])
49
               ],
50
    cmdclass={'install_data':InstallData}
1 by Robey Pointer
initial checkin
51
    )
52