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
42 lines (31 loc) · 781 Bytes
/
recipe.sh
File metadata and controls
42 lines (31 loc) · 781 Bytes
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
#!/bin/bash
VERSION_numpy=${VERSION_numpy:-1.7.1}
URL_numpy=http://pypi.python.org/packages/source/n/numpy/numpy-$VERSION_numpy.tar.gz
DEPS_numpy=(python)
MD5_numpy=0ab72b3b83528a7ae79c6df9042d61c6
BUILD_numpy=$BUILD_PATH/numpy/$(get_directory $URL_numpy)
RECIPE_numpy=$RECIPES_PATH/numpy
function prebuild_numpy() {
cd $BUILD_numpy
if [ -f .patched ]; then
return
fi
try patch -p1 < $RECIPE_numpy/patches/fix-numpy.patch
touch .patched
}
function shouldbuild_numpy() {
if [ -d "$SITEPACKAGES_PATH/numpy" ]; then
DO_BUILD=0
fi
}
function build_numpy() {
cd $BUILD_numpy
push_arm
try $HOSTPYTHON setup.py build_ext -v
try find build/lib.* -name "*.o" -exec $STRIP {} \;
try $HOSTPYTHON setup.py install -O2
pop_arm
}
function postbuild_numpy() {
true
}