summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-24 18:41:29 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-24 18:41:29 +0100
commit12a03e67fa641beb81b89e047ee02672f26a31db (patch)
treea8a00ca446c23924aed529773cb6838194c1d875
parent8bf6785664bf131640d8739929c0901b3190f0d0 (diff)
downloadseivot-12a03e67fa641beb81b89e047ee02672f26a31db.tar.gz
Build with setup.py if Makefile is missing.
-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]