Skip to content

Commit 9feb0af

Browse files
committed
Merge pull request kivy#398 from torfinnberset/master
Updated Twisted and Zope recipes
2 parents b18f0f7 + 32a5b4e commit 9feb0af

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

recipes/thrift/recipe.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

recipes/twisted/recipe.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
VERSION_twisted=${VERSION_twisted:-14.0}
4-
URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.0.tar.bz2
3+
VERSION_twisted=${VERSION_twisted:-15.2}
4+
URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.1.tar.bz2
55

66
DEPS_twisted=(zope)
7-
MD5_twisted=9625c094e0a18da77faa4627b98c9815
7+
MD5_twisted=4be066a899c714e18af1ecfcb01cfef7
88
BUILD_twisted=$BUILD_PATH/twisted/$(get_directory $URL_twisted)
99
RECIPE_twisted=$RECIPES_PATH/twisted
1010

0 commit comments

Comments
 (0)