diff options
-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] |