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
41 lines (31 loc) · 1.07 KB
/
recipe.sh
File metadata and controls
41 lines (31 loc) · 1.07 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
#!/bin/bash
VERSION_netifaces=0.10.3
DEPS_netifaces=(hostpython python setuptools)
URL_netifaces=http://pypi.python.org/packages/source/n/netifaces/netifaces-$VERSION_netifaces.tar.gz
MD5_netifaces=b96913473e1dcc3c4a7c43bc15d10e26
BUILD_netifaces=$BUILD_PATH/netifaces/$(get_directory $URL_netifaces)
RECIPE_netifaces=$RECIPES_PATH/netifaces
function prebuild_netifaces() {
true
}
function build_netifaces() {
cd $BUILD_netifaces
#FIXME it actually builds an egg
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/netifaces" ]; then
#return
true
fi
push_arm
# build python extension
export CFLAGS="$CFLAGS -I$BUILD_PATH/python-install/include/python2.7"
export LDSHARED=$LIBLINK
export PYTHONPATH=$BUILD_PATH/python-install/lib/python2.7/site-packages
# resulting .so is empty but .o will be collected into libpymodules.so in final distribute.sh step
try $BUILD_hostpython/hostpython setup.py build_ext
unset LDSHARED
try $BUILD_hostpython/hostpython setup.py install -O2 --prefix $BUILD_PATH/python-install
pop_arm
}
function postbuild_netifaces() {
true
}