File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VERSION_cprotobuf=${VERSION_cprotobuf:- 0.1.3}
4+ URL_cprotobuf=https://pypi.python.org/packages/source/c/cprotobuf/cprotobuf-$VERSION_cprotobuf .tar.gz
5+ DEPS_cprotobuf=(python)
6+ MD5_cprotobuf=c2bf4083eca57f5eb5a481999ea03755
7+ BUILD_cprotobuf=$BUILD_PATH /cprotobuf/$( get_directory $URL_cprotobuf )
8+ RECIPE_cprotobuf=$RECIPES_PATH /cprotobuf
9+
10+ function prebuild_cprotobuf() {
11+ true
12+ }
13+
14+ function shouldbuild_cprotobuf() {
15+ if [ -d " $SITEPACKAGES_PATH /cprotobuf" ]; then
16+ DO_BUILD=0
17+ fi
18+ }
19+
20+ function build_cprotobuf() {
21+ cd $BUILD_cprotobuf
22+
23+ push_arm
24+
25+ export LDSHARED=" $LIBLINK "
26+
27+ try find . -iname ' *.pyx' -exec $CYTHON {} \;
28+ try $HOSTPYTHON setup.py build_ext -v
29+ try find build/lib.* -name " *.o" -exec $STRIP {} \;
30+
31+ export PYTHONPATH=$BUILD_hostpython /Lib/site-packages
32+ try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
33+
34+ unset LDSHARED
35+ pop_arm
36+ }
37+
38+ function postbuild_cprotobuf() {
39+ true
40+ }
You can’t perform that action at this time.
0 commit comments