~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:49:41 UTC
  • mto: This revision was merged to the branch mainline in revision 188.
  • Revision ID: argentina@gmail.com-20080729204941-g2vs0t3mydogiv1x
 * Removed unused file
 * Added copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# You should have received a copy of the GNU General Public License
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
 
19
18
"""Loggerhead is a web viewer for projects in bazaar"""
20
19
 
21
 
from distutils.core import setup
22
 
 
 
20
from distutils.core import setup, Command
 
21
from distutils.command.install_data import install_data
 
22
from distutils.dep_util import newer
 
23
from distutils.log import info
 
24
import glob
 
25
import os
 
26
import sys
23
27
import loggerhead
24
28
 
25
29
 
 
30
if sys.version_info < (2, 4):
 
31
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
 
32
    sys.exit(1)
 
33
 
 
34
class InstallData(install_data):
 
35
    def run(self):
 
36
        install_data.run(self)
 
37
 
26
38
setup(
27
39
    name = "loggerhead",
28
40
    version = loggerhead.__version__,
32
44
    maintainer_email = "michael.hudson@canonical.com",
33
45
    scripts = ["start-loggerhead", "stop-loggerhead", "serve-branches"],
34
46
    packages = ["loggerhead",
35
 
                "loggerhead/apps",
36
 
                "loggerhead/controllers",
37
 
                "loggerhead/templates",
38
 
                "bzrlib.plugins.loggerhead"],
39
 
    package_dir={'bzrlib.plugins.loggerhead':'.'},
40
 
    package_data = {"loggerhead": ["templates/*.pt",
41
 
                                   "static/css/*.css",
42
 
                                   "static/javascript/*.js",
43
 
                                   "static/javascript/yui/build/anim/*",
44
 
                                   "static/javascript/yui/build/base/*",
45
 
                                   "static/javascript/yui/build/cssbase/*",
46
 
                                   "static/javascript/yui/build/cssgrids/*",
47
 
                                   "static/javascript/yui/build/dd/*",
48
 
                                   "static/javascript/yui/build/dump/*",
49
 
                                   "static/javascript/yui/build/get/*",
50
 
                                   "static/javascript/yui/build/json/*",
51
 
                                   "static/javascript/yui/build/node/*",
52
 
                                   "static/javascript/yui/build/queue/*",
53
 
                                   "static/javascript/yui/build/yui/*",
54
 
                                   "static/javascript/yui/build/attribute/*",
55
 
                                   "static/javascript/yui/build/cookie/*",
56
 
                                   "static/javascript/yui/build/cssfonts/*",
57
 
                                   "static/javascript/yui/build/cssreset/*",
58
 
                                   "static/javascript/yui/build/dom/*",
59
 
                                   "static/javascript/yui/build/event/*",
60
 
                                   "static/javascript/yui/build/io/*",
61
 
                                   "static/javascript/yui/build/loader/*",
62
 
                                   "static/javascript/yui/build/oop/*",
63
 
                                   "static/javascript/yui/build/substitute/*",
64
 
                                   "static/javascript/yui/build/yui-base/*",
65
 
                                   "static/images/*"]},
66
 
    data_files = [
67
 
        ('share/man/man1', ['start-loggerhead.1',
68
 
                            'stop-loggerhead.1',
69
 
                            'serve-branches.1']),
70
 
        ('share/doc/loggerhead', ['loggerhead.conf.example']),
71
 
        ],
 
47
               ],
 
48
    package_data = {"loggerhead":["templates/*"]},
 
49
    data_files=[
 
50
                ('share/man/man1',['start-loggerhead.1', 'stop-loggerhead.1']),
 
51
                ('share/doc/loggerhead', ['loggerhead.conf.example'])
 
52
               ],
 
53
    cmdclass={'install_data':InstallData}
72
54
    )
 
55