from toolchain import Recipe, shprint, cd, cache_execution import sh class HostSetuptools3(Recipe): depends = ["openssl", "hostpython3"] archs = ["x86_64"] version = '40.9.0' url = 'https://pypi.python.org/packages/source/s/setuptools/setuptools-{version}.zip' @cache_execution def install(self): arch = self.filtered_archs[0] build_dir = self.get_build_dir(arch.arch) hostpython = sh.Command(self.ctx.hostpython) with cd(build_dir): shprint(hostpython, "setup.py", "install") recipe = HostSetuptools3()