Skip to content

Commit b078955

Browse files
1 parent 1132274 commit b078955

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
"""Build AIOHTTP"""
22
from typing import List
3-
from pythonforandroid.recipe import CythonRecipe # type: ignore
3+
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe
44

5-
6-
class AIOHTTPRecipe(CythonRecipe): # type: ignore # pylint: disable=R0903
7-
"""Build AIOHTTP"""
8-
9-
version = "v3.6.2"
10-
url = "https://github.com/aio-libs/aiohttp/archive/{version}.zip"
5+
class AIOHTTPRecipe(CppCompiledComponentsPythonRecipe): # type: ignore # pylint: disable=R0903
6+
url = "https://files.pythonhosted.org/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz"
117
name = "aiohttp"
12-
138
depends: List[str] = ["setuptools"]
9+
call_hostpython_via_targetpython = False
10+
install_in_hostpython = True
1411

12+
def get_recipe_env(self, arch):
13+
env = super().get_recipe_env(arch)
14+
env['LDFLAGS'] += ' -lc++_shared'
15+
return env
1516

1617
recipe = AIOHTTPRecipe()

0 commit comments

Comments
 (0)