Skip to content

Commit

Permalink
Make CI compile aiohttp again. (#2690)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
xavierfiechter authored Oct 20, 2022
1 parent 1132274 commit 7de5d2b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions pythonforandroid/recipes/aiohttp/__init__.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 7de5d2b

Please sign in to comment.