diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-24 18:41:29 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-24 18:41:29 +0100 |
commit | 12a03e67fa641beb81b89e047ee02672f26a31db (patch) | |
tree | a8a00ca446c23924aed529773cb6838194c1d875 | |
parent | 8bf6785664bf131640d8739929c0901b3190f0d0 (diff) | |
download | seivot-12a03e67fa641beb81b89e047ee02672f26a31db.tar.gz |
Build with setup.py if Makefile is missing.
-rwxr-xr-x | seivot | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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] |