2020-05-03 16:23:08 +02:00
|
|
|
from kivy_ios.toolchain import Recipe, shprint, cd, cache_execution
|
2019-09-27 23:59:42 +02:00
|
|
|
import sh
|
|
|
|
|
|
|
|
|
|
|
|
class HostSetuptools3(Recipe):
|
|
|
|
depends = ["openssl", "hostpython3"]
|
|
|
|
archs = ["x86_64"]
|
2020-04-29 23:43:07 +02:00
|
|
|
version = '40.9.0'
|
|
|
|
url = 'https://pypi.python.org/packages/source/s/setuptools/setuptools-{version}.zip'
|
2019-09-27 23:59:42 +02:00
|
|
|
|
2020-04-29 23:43:07 +02:00
|
|
|
@cache_execution
|
|
|
|
def install(self):
|
|
|
|
arch = self.filtered_archs[0]
|
|
|
|
build_dir = self.get_build_dir(arch.arch)
|
2019-09-27 23:59:42 +02:00
|
|
|
hostpython = sh.Command(self.ctx.hostpython)
|
2020-04-29 23:43:07 +02:00
|
|
|
with cd(build_dir):
|
|
|
|
shprint(hostpython, "setup.py", "install")
|
2019-09-27 23:59:42 +02:00
|
|
|
|
2020-04-27 07:29:11 +02:00
|
|
|
|
2019-09-27 23:59:42 +02:00
|
|
|
recipe = HostSetuptools3()
|