summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xseivot6
1 files changed, 5 insertions, 1 deletions
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]