File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION_thrift=${VERSION_thrift:- 0.9.2}
4
+ URL_thrift=https://pypi.python.org/packages/source/t/thrift/thrift-$VERSION_thrift .tar.gz
5
+ DEPS_thrift=(python setuptools)
6
+ MD5_thrift=91f1c224c46a257bb428431943387dfd
7
+ BUILD_thrift=$BUILD_PATH /thrift/$( get_directory $URL_thrift )
8
+ RECIPE_thrift=$RECIPES_PATH /thrift
9
+
10
+ function prebuild_thrift() {
11
+ true
12
+ }
13
+
14
+ function shouldbuild_thrift() {
15
+ if [ -d " $SITEPACKAGES_PATH /thrift" ]; then
16
+ DO_BUILD=0
17
+ fi
18
+ }
19
+
20
+ function build_thrift() {
21
+ cd $BUILD_thrift
22
+
23
+ push_arm
24
+
25
+ # fake try to be able to cythonize generated files
26
+ $HOSTPYTHON setup.py build_ext
27
+ try find . -iname ' *.pyx' -exec $CYTHON {} \;
28
+ try $HOSTPYTHON setup.py build_ext -v
29
+
30
+ try find build/lib.* -name " *.o" -exec $STRIP {} \;
31
+
32
+ export PYTHONPATH=$BUILD_PATH /hostpython/Python-2.7.2/Lib/site-packages
33
+ 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
34
+
35
+ pop_arm
36
+ }
37
+
38
+ function postbuild_thrift() {
39
+ true
40
+ }
You can’t perform that action at this time.
0 commit comments