Skip to content

Commit 7de5d2b

Browse files
Make CI compile aiohttp again. (#2690)
* Make CI compile aiohttp again. References: https://stackoverflow.com/a/64755338/20124004, https://stackoverflow.com/a/64755052/20124004, #2518 * version variable and github url * lost a newline * added missing line for pep * Changed URL
1 parent 1132274 commit 7de5d2b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed
+11-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
"""Build AIOHTTP"""
22
from typing import List
3-
from pythonforandroid.recipe import CythonRecipe # type: ignore
3+
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe
44

55

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"
6+
class AIOHTTPRecipe(CppCompiledComponentsPythonRecipe): # type: ignore # pylint: disable=R0903
7+
version = "3.8.3"
8+
url = "https://pypi.python.org/packages/source/a/aiohttp/aiohttp-{version}.tar.gz"
119
name = "aiohttp"
12-
1310
depends: List[str] = ["setuptools"]
11+
call_hostpython_via_targetpython = False
12+
install_in_hostpython = True
13+
14+
def get_recipe_env(self, arch):
15+
env = super().get_recipe_env(arch)
16+
env['LDFLAGS'] += ' -lc++_shared'
17+
return env
1418

1519

1620
recipe = AIOHTTPRecipe()

0 commit comments

Comments
 (0)