lbry-android-sdk/p4a/pythonforandroid/recipes/aiohttp/__init__.py

21 lines
628 B
Python
Raw Permalink Normal View History

2022-12-02 21:15:34 +01:00
"""Build AIOHTTP"""
from typing import List
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe
class AIOHTTPRecipe(CppCompiledComponentsPythonRecipe): # type: ignore # pylint: disable=R0903
version = "3.8.3"
url = "https://pypi.python.org/packages/source/a/aiohttp/aiohttp-{version}.tar.gz"
name = "aiohttp"
depends: List[str] = ["setuptools"]
call_hostpython_via_targetpython = False
install_in_hostpython = True
def get_recipe_env(self, arch):
env = super().get_recipe_env(arch)
env['LDFLAGS'] += ' -lc++_shared'
return env
recipe = AIOHTTPRecipe()