Skip to content

Commit aaa06a8

Browse files
committed
added gevent recipe
1 parent bd62322 commit aaa06a8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

recipes/gevent/recipe.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
VERSION_gevent=0.13.8
4+
URL_gevent=https://pypi.python.org/packages/source/g/gevent/gevent-$VERSION_gevent.tar.gz
5+
DEPS_gevent=(libevent greenlet)
6+
MD5_gevent=ca9dcaa7880762d8ebbc266b11252960
7+
BUILD_gevent=$BUILD_PATH/gevent/$(get_directory $URL_gevent)
8+
RECIPE_gevent=$RECIPES_PATH/gevent
9+
10+
function prebuild_gevent() {
11+
true
12+
}
13+
14+
function build_gevent() {
15+
cd $BUILD_gevent
16+
17+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/gevent" ]; then
18+
return
19+
fi
20+
21+
push_arm
22+
export CFLAGS="$CFLAGS -I$BUILD_libevent/build/include"
23+
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_libevent/build/lib/"
24+
25+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
26+
pop_arm
27+
}
28+
29+
function postbuild_gevent() {
30+
true
31+
}

0 commit comments

Comments
 (0)