diff --git a/pythonforandroid/recipes/aiohttp/__init__.py b/pythonforandroid/recipes/aiohttp/__init__.py index 74f6a07c7c..f32c653fcb 100644 --- a/pythonforandroid/recipes/aiohttp/__init__.py +++ b/pythonforandroid/recipes/aiohttp/__init__.py @@ -1,16 +1,20 @@ """Build AIOHTTP""" from typing import List -from pythonforandroid.recipe import CythonRecipe # type: ignore +from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe -class AIOHTTPRecipe(CythonRecipe): # type: ignore # pylint: disable=R0903 - """Build AIOHTTP""" - - version = "v3.6.2" - url = "https://github.com/aio-libs/aiohttp/archive/{version}.zip" +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()