Cleanup lbry recipe. Add certifi recipe.
This commit is contained in:
parent
cd42e78292
commit
ce44cd726a
2 changed files with 26 additions and 1 deletions
23
kivy_ios/recipes/certifi/__init__.py
Normal file
23
kivy_ios/recipes/certifi/__init__.py
Normal file
|
@ -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()
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue