/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-02 14:48:04 UTC
  • mfrom: (715.1.3 trunk)
  • Revision ID: jelmer@samba.org-20110302144804-7cuz2lmoy2txuv8k
merge improvements to generate credits pickle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from distutils.core import setup, Command
7
7
from distutils.command.install_data import install_data
8
8
from distutils.command.build import build
 
9
from distutils.command.sdist import sdist
9
10
import os
10
11
import sys
11
12
 
25
26
 
26
27
    def run(self):
27
28
        from bzrlib.tests import TestLoader, TestSuite, TextTestRunner
28
 
        import __init__ as bzrgtk
 
29
        from bzrlib.plugin import PluginImporter
 
30
        PluginImporter.specific_paths["bzrlib.plugins.gtk"] = os.path.dirname(__file__)
 
31
        from bzrlib.plugins.gtk.tests import load_tests
 
32
        suite = TestSuite()
 
33
        loader = TestLoader()
 
34
        load_tests(suite, None, loader)
29
35
        runner = TextTestRunner()
30
 
        loader = TestLoader()
31
 
        suite = TestSuite()
32
 
        suite.addTest(bzrgtk.test_suite())
33
36
        result = runner.run(suite)
34
37
        return result.wasSuccessful()
35
38
 
77
80
    sub_commands.append(('build_credits', is_versioned))
78
81
 
79
82
 
 
83
class SourceDist(sdist):
 
84
    sub_commands = sdist.sub_commands[:]
 
85
    sub_commands.append(('build_credits', is_versioned))
 
86
 
 
87
 
80
88
class InstallData(install_data):
81
89
 
82
90
    def run(self):
167
175
        cmdclass={'install_data': InstallData,
168
176
                  'build_credits': CreateCredits,
169
177
                  'build': BuildData,
 
178
                  'sdist': SourceDist,
170
179
                  'check': Check}
171
180
        )