diff --git a/kivy_ios/recipes/certifi/__init__.py b/kivy_ios/recipes/certifi/__init__.py new file mode 100644 index 0000000..7ea0390 --- /dev/null +++ b/kivy_ios/recipes/certifi/__init__.py @@ -0,0 +1,23 @@ +# pure-python package, this can be removed when we'll support any python package +import os +import sh +from kivy_ios.toolchain import PythonRecipe, shprint + + +class CertifiRecipe(PythonRecipe): + version = "2020.6.20" + url = "https://pypi.python.org/packages/source/c/certifi/certifi-{version}.tar.gz" + depends = ["python"] + + def install(self): + arch = list(self.filtered_archs)[0] + build_dir = self.get_build_dir(arch.arch) + os.chdir(build_dir) + hostpython = sh.Command(self.ctx.hostpython) + build_env = arch.get_env() + dest_dir = os.path.join(self.ctx.dist_dir, "root", "python3") + build_env['PYTHONPATH'] = os.path.join(dest_dir, 'lib', 'python3.8', 'site-packages') + shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env) + + +recipe = CertifiRecipe() diff --git a/kivy_ios/recipes/lbry/__init__.py b/kivy_ios/recipes/lbry/__init__.py index dbed1df..993b408 100644 --- a/kivy_ios/recipes/lbry/__init__.py +++ b/kivy_ios/recipes/lbry/__init__.py @@ -6,10 +6,11 @@ class LbryRecipe(PythonRecipe): version = "f7eed62" url = "https://github.com/lbryio/lbry/archive/{version}.tar.gz" depends = [ + "openssl", "python", "ios", "pyobjus", - "kivy", + "sdl2", # install_requires dependencies "aiohttp", @@ -17,6 +18,7 @@ class LbryRecipe(PythonRecipe): "appdirs", "async-timeout", "base58", + "certifi", "chardet", "coincurve", "colorama",