Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pythonforandroid/recipes/gevent/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pythonforandroid.toolchain import CompiledComponentsPythonRecipe


class GeventRecipe(CompiledComponentsPythonRecipe):
version = '1.1.1'
url = 'https://pypi.python.org/packages/source/g/gevent/gevent-{version}.tar.gz'
depends = [('python2', 'python3crystax'), 'greenlet']
patches = ["gevent.patch"]

recipe = GeventRecipe()
21 changes: 21 additions & 0 deletions pythonforandroid/recipes/gevent/gevent.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff -Naur gevent-1.1.1/setup.py gevent-1.1.1_diff/setup.py
--- gevent-1.1.1/setup.py 2016-04-04 17:27:33.000000000 +0200
+++ gevent-1.1.1_diff/setup.py 2016-05-10 10:10:39.145881610 +0200
@@ -96,7 +96,7 @@
# and the PyPy branch will clean it up.
libev_configure_command = ' '.join([
"(cd ", _quoted_abspath('libev/'),
- " && /bin/sh ./configure ",
+ " && /bin/sh ./configure --host={}".format(os.environ['TOOLCHAIN_PREFIX']),
" && cp config.h \"$OLDPWD\"",
")",
'> configure-output.txt'
@@ -112,7 +112,7 @@
# Use -r, not -e, for support of old solaris. See https://github.com/gevent/gevent/issues/777
ares_configure_command = ' '.join(["(cd ", _quoted_abspath('c-ares/'),
" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi ",
- " && /bin/sh ./configure " + _m32 + "CONFIG_COMMANDS= CONFIG_FILES= ",
+ " && /bin/sh ./configure --host={} ".format(os.environ['TOOLCHAIN_PREFIX']) + "CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES= ",
" && cp ares_config.h ares_build.h \"$OLDPWD\" ",
" && mv ares_build.h.orig ares_build.h)",
"> configure-output.txt"])
9 changes: 9 additions & 0 deletions pythonforandroid/recipes/greenlet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from pythonforandroid.toolchain import PythonRecipe


class GreenletRecipe(PythonRecipe):
version = '0.4.9'
url = 'https://pypi.python.org/packages/source/g/greenlet/greenlet-{version}.tar.gz'
depends = [('python2', 'python3crystax')]

recipe = GreenletRecipe()