Skip to content

added msgpack recipe #147

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

VERSION_msgpack=0.3.0
URL_msgpack=https://pypi.python.org/packages/source/m/msgpack-python/msgpack-python-$VERSION_msgpack.tar.gz
DEPS_msgpack=(python setuptools)
MD5_msgpack=10dec96c90992b0f6e38bdf0cc5a8e79
BUILD_msgpack=$BUILD_PATH/msgpack/$(get_directory $URL_msgpack)
RECIPE_msgpack=$RECIPES_PATH/msgpack

function prebuild_msgpack() {
true
}

function build_msgpack() {
cd $BUILD_msgpack

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

push_arm

# fake try to be able to cythonize generated files
$BUILD_PATH/python-install/bin/python.host setup.py build_ext
try find . -iname '*.pyx' -exec cython {} \;
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v

try find build/lib.* -name "*.o" -exec $STRIP {} \;

export PYTHONPATH=$BUILD_PATH/hostpython/Python-2.7.2/Lib/site-packages
try $BUILD_PATH/hostpython/Python-2.7.2/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages

pop_arm
}

function postbuild_msgpack() {
true
}