Skip to content

Commit 3ad8108

Browse files
committed
gevent and greenlet recipes
1 parent f343c14 commit 3ad8108

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from pythonforandroid.toolchain import CompiledComponentsPythonRecipe
2+
3+
4+
class GeventRecipe(CompiledComponentsPythonRecipe):
5+
version = '1.1.1'
6+
url = 'https://pypi.python.org/packages/source/g/gevent/gevent-{version}.tar.gz'
7+
depends = [('python2', 'python3crystax'), 'greenlet']
8+
patches = ["gevent.patch"]
9+
10+
recipe = GeventRecipe()
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff -Naur gevent-1.1.1/setup.py gevent-1.1.1_diff/setup.py
2+
--- gevent-1.1.1/setup.py 2016-04-04 17:27:33.000000000 +0200
3+
+++ gevent-1.1.1_diff/setup.py 2016-05-10 10:10:39.145881610 +0200
4+
@@ -96,7 +96,7 @@
5+
# and the PyPy branch will clean it up.
6+
libev_configure_command = ' '.join([
7+
"(cd ", _quoted_abspath('libev/'),
8+
- " && /bin/sh ./configure ",
9+
+ " && /bin/sh ./configure --host={}".format(os.environ['TOOLCHAIN_PREFIX']),
10+
" && cp config.h \"$OLDPWD\"",
11+
")",
12+
'> configure-output.txt'
13+
@@ -112,7 +112,7 @@
14+
# Use -r, not -e, for support of old solaris. See https://github.com/gevent/gevent/issues/777
15+
ares_configure_command = ' '.join(["(cd ", _quoted_abspath('c-ares/'),
16+
" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi ",
17+
- " && /bin/sh ./configure " + _m32 + "CONFIG_COMMANDS= CONFIG_FILES= ",
18+
+ " && /bin/sh ./configure --host={} ".format(os.environ['TOOLCHAIN_PREFIX']) + "CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES= ",
19+
" && cp ares_config.h ares_build.h \"$OLDPWD\" ",
20+
" && mv ares_build.h.orig ares_build.h)",
21+
"> configure-output.txt"])
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pythonforandroid.toolchain import PythonRecipe
2+
3+
4+
class GreenletRecipe(PythonRecipe):
5+
version = '0.4.9'
6+
url = 'https://pypi.python.org/packages/source/g/greenlet/greenlet-{version}.tar.gz'
7+
depends = [('python2', 'python3crystax')]
8+
9+
recipe = GreenletRecipe()

0 commit comments

Comments
 (0)