From 12a03e67fa641beb81b89e047ee02672f26a31db Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 24 Aug 2011 18:41:29 +0100 Subject: Build with setup.py if Makefile is missing. --- seivot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/seivot b/seivot index 54bdca1..75c151d 100755 --- a/seivot +++ b/seivot @@ -195,8 +195,12 @@ class Obnam(BackupProgram): def prepare(self): if self._branch: if os.path.exists(os.path.join(self._branch, 'Makefile')): - logging.info('Building obnam in %s' % self._branch) + logging.info('Building obnam in %s with make' % self._branch) runcmd(['make'], cwd=self._branch) + else: + logging.info('Building obnam in %s with setup.py' % + self._branch) + runcmd(['python', 'setup.py', 'build_ext', '-i']) def backup(self, nth_gen): return self._run(['backup', self.live_data], nth_gen)[0] -- cgit v1.2.1