def action_build(self): cwd = self.get_path() local.chdir(cwd) # itools package: build if lfs.exists('%s/setup.conf' % cwd): build = '%s/bin/ipkg-build.py' % prefix if not lfs.exists(build): build = 'ipkg-build.py' local.run([build]) local.run([executable, 'setup.py', '--quiet', 'sdist'])
def _checkout(self, branch): cwd = self.get_path() local.chdir(cwd) try: local.run(['git', 'checkout', branch]) except EnvironmentError: local.run(['git', 'checkout', '-b', branch, 'origin/%s' % branch]) else: local.run(['git', 'reset', '--hard', 'origin/%s' % branch]) local.run('git clean -fxdq')
def get_pkgname(self): cwd = self.get_path() local.chdir(cwd) return local.run([executable, 'setup.py', '--fullname']).strip()