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
46 lines (35 loc) · 1.26 KB
/
recipe.sh
File metadata and controls
46 lines (35 loc) · 1.26 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
41
42
43
44
45
46
#!/bin/bash
VERSION_lxml=${VERSION_lxml:-2.3.6}
URL_lxml=http://pypi.python.org/packages/source/l/lxml/lxml-$VERSION_lxml.tar.gz
DEPS_lxml=(libxml2 libxslt python)
MD5_lxml=d5d886088e78b1bdbfd66d328fc2d0bc
BUILD_lxml=$BUILD_PATH/lxml/$(get_directory $URL_lxml)
RECIPE_lxml=$RECIPES_PATH/lxml
function prebuild_lxml() {
true
}
function shouldbuild_lxml() {
if [ -d "$SITEPACKAGES_PATH/lxml" ]; then
DO_BUILD=0
fi
}
function build_lxml() {
cd $BUILD_lxml
push_arm
export CC="$CC -I$BUILD_libxml2/include -I$BUILD_libxslt"
export LDFLAGS="-L$BUILD_libxslt/libxslt/.libs -L$BUILD_libxslt/libexslt/.libs -L$BUILD_libxml2/.libs -L$BUILD_libxslt/libxslt -L$BUILD_libxslt/libexslt -L$BUILD_libxml2/ $LDFLAGS"
export LDSHARED="$LIBLINK"
chmod +x $BUILD_libxslt/xslt-config
export PATH=$PATH:$BUILD_libxslt
try $HOSTPYTHON setup.py build_ext -I$BUILD_libxml2/include -I$BUILD_libxslt
try find . -iname '*.pyx' -exec $CYTHON {} \;
try $HOSTPYTHON setup.py build_ext -v
try find build/lib.* -name "*.o" -exec $STRIP {} \;
export PYTHONPATH=$BUILD_hostpython/Lib/site-packages
try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages
unset LDSHARED
pop_arm
}
function postbuild_lxml() {
true
}