File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
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 ()
Original file line number Diff line number Diff line change
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"])
Original file line number Diff line number Diff line change
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 ()
You can’t perform that action at this time.
0 commit comments