2020-07-26 21:07:10 +02:00
|
|
|
from kivy_ios.toolchain import Recipe, shprint, cache_execution
|
|
|
|
from kivy_ios.context_managers import cd, python_path
|
2019-09-27 23:59:42 +02:00
|
|
|
import sh
|
|
|
|
|
|
|
|
|
|
|
|
class HostSetuptools3(Recipe):
|
2020-07-26 21:07:10 +02:00
|
|
|
depends = ["openssl", "hostpython3", "python3"]
|
2019-09-27 23:59:42 +02:00
|
|
|
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-07-26 21:07:10 +02:00
|
|
|
|
|
|
|
with python_path(self.ctx.site_packages_dir):
|
|
|
|
with cd(build_dir):
|
|
|
|
shprint(hostpython, "setup.py", "install",
|
|
|
|
f"--prefix={self.ctx.python_prefix}")
|
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()
|