File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VERSION_msgpack=0.3.0
4+ URL_msgpack=https://pypi.python.org/packages/source/m/msgpack-python/msgpack-python-$VERSION_msgpack .tar.gz
5+ DEPS_msgpack=(python setuptools)
6+ MD5_msgpack=10dec96c90992b0f6e38bdf0cc5a8e79
7+ BUILD_msgpack=$BUILD_PATH /msgpack/$( get_directory $URL_msgpack )
8+ RECIPE_msgpack=$RECIPES_PATH /msgpack
9+
10+ function prebuild_msgpack() {
11+ true
12+ }
13+
14+ function build_msgpack() {
15+ cd $BUILD_msgpack
16+
17+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/msgpack" ]; then
18+ return
19+ fi
20+
21+ push_arm
22+
23+ # fake try to be able to cythonize generated files
24+ $BUILD_PATH /python-install/bin/python.host setup.py build_ext
25+ try find . -iname ' *.pyx' -exec cython {} \;
26+ try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
27+
28+ try find build/lib.* -name " *.o" -exec $STRIP {} \;
29+
30+ export PYTHONPATH=$BUILD_PATH /hostpython/Python-2.7.2/Lib/site-packages
31+ 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
32+
33+ pop_arm
34+ }
35+
36+ function postbuild_msgpack() {
37+ true
38+ }
You can’t perform that action at this time.
0 commit comments