def _deploy_make_install(self, setup_dir): rc = util.make_install(self.name, setup_dir, self.make_install_opts) if rc != 0: self.log.error('Problem running make-install %s.' % self.name) return 1 else: self.log.info('Successfully made %s.' % self.name) return self._copy_dir(setup_dir)
def deploy_ampliconnoise(app, setup_dir): rc = util.make_install('ampliconnoise', setup_dir) if rc != 0: return rc # Certain versions of AmpliconNoise have a bad symlink that needs to be # removed, while other versions do not. We use a try/except structure # instead of using os.path.exists() because broken symlinks will return # False. filePath = os.path.join(setup_dir, 'PyroNoiseM/.#Head10.dat') try: os.remove(filePath) except OSError: pass os.rmdir(app.deploy_dir) return util.copytree(setup_dir, app.deploy_dir)