Skip to content

Add gevent recipe #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2013
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
31 changes: 31 additions & 0 deletions recipes/gevent/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

VERSION_gevent=0.13.8
URL_gevent=https://pypi.python.org/packages/source/g/gevent/gevent-$VERSION_gevent.tar.gz
DEPS_gevent=(libevent greenlet)
MD5_gevent=ca9dcaa7880762d8ebbc266b11252960
BUILD_gevent=$BUILD_PATH/gevent/$(get_directory $URL_gevent)
RECIPE_gevent=$RECIPES_PATH/gevent

function prebuild_gevent() {
true
}

function build_gevent() {
cd $BUILD_gevent

if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/gevent" ]; then
return
fi

push_arm
export CFLAGS="$CFLAGS -I$BUILD_libevent/build/include"
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_libevent/build/lib/"

try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
pop_arm
}

function postbuild_gevent() {
true
}
30 changes: 30 additions & 0 deletions recipes/greenlet/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

VERSION_greenlet=0.4.1
URL_greenlet=https://pypi.python.org/packages/source/g/greenlet/greenlet-$VERSION_greenlet.zip
https://github.com/downloads/greenlet/greenlet/greenlet-$VERSION_greenlet.tar.gz
DEPS_greenlet=(python)
MD5_greenlet=c2deda75bdda59c38cae12a77cc53adc
BUILD_greenlet=$BUILD_PATH/greenlet/$(get_directory $URL_greenlet)
RECIPE_greenlet=$RECIPES_PATH/greenlet

function prebuild_greenlet() {
true
}

function build_greenlet() {
cd $BUILD_greenlet

if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/greenlet.so" ]; then
return
fi

push_arm

try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
pop_arm
}

function postbuild_greenlet() {
true
}
29 changes: 29 additions & 0 deletions recipes/libevent/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

VERSION_libevent=2.0.21-stable
URL_libevent=https://github.com/downloads/libevent/libevent/libevent-$VERSION_libevent.tar.gz
DEPS_libevent=(python)
MD5_libevent=b2405cc9ebf264aa47ff615d9de527a2
BUILD_libevent=$BUILD_PATH/libevent/$(get_directory $URL_libevent)
RECIPE_libevent=$RECIPES_PATH/libevent

function prebuild_libevent() {
true
}

function build_libevent() {
cd $BUILD_libevent

if [ -f $BUILD_libevent/build/lib/libevent.la ]; then
return
fi

push_arm
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_libevent/build/
try make install
pop_arm
}

function postbuild_libevent() {
true
}