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
31 lines (26 loc) · 731 Bytes
/
recipe.sh
File metadata and controls
31 lines (26 loc) · 731 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
#!/bin/bash
VERSION_django=${VERSION_django:-1.6.1}
DEPS_django=(sqlite3 python)
URL_django=https://pypi.python.org/packages/source/D/Django/Django-$VERSION_django.tar.gz
MD5_django=3ea7a00ea9e7a014e8a4067dd6466a1b
BUILD_django=$BUILD_PATH/django/$(get_directory $URL_django)
RECIPE_django=$RECIPES_PATH/django
function prebuild_django() {
true
}
function shouldbuild_django() {
if [ -d "$SITEPACKAGES_PATH/django" ]; then
DO_BUILD=0
fi
}
function build_django() {
cd $BUILD_django
push_arm
try $HOSTPYTHON setup.py install
pop_arm
}
function postbuild_django() {
# ensure the blacklist doesn't contain wsgiref or unittest
$SED '/unittest/d' $BUILD_PATH/blacklist.txt
$SED '/wsgiref/d' $BUILD_PATH/blacklist.txt
}