46
47
if not os.path.isfile('setup.py'):
47
48
raise TestSkipped('There is no setup.py file in current directory')
55
52
raise TestSkipped('You must have distutils installed to run this test.'
56
53
' Usually this can be found by installing "python-dev"')
57
54
self.log('test_build running in %s' % os.getcwd())
59
56
# setup.py must be run from the root source directory, but the tests
60
57
# are not necessarily invoked from there
61
58
self.source_dir = os.path.dirname(os.path.dirname(bzrlib.__file__))