forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.sh
More file actions
40 lines (30 loc) · 1.05 KB
/
recipe.sh
File metadata and controls
40 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
VERSION_msgpack=${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 shouldbuild_msgpack() {
if [ -d "$SITEPACKAGES_PATH/msgpack" ]; then
DO_BUILD=0
fi
}
function build_msgpack() {
cd $BUILD_msgpack
push_arm
# fake try to be able to cythonize generated files
$HOSTPYTHON setup.py build_ext
try find . -iname '*.pyx' -exec $CYTHON {} \;
try $HOSTPYTHON 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
}