Skip to content

Commit f15640c

Browse files
committed
Merge pull request kivy#203 from blagarde/django_recipe
Django recipe
2 parents 5a5e8ea + 99c7a3e commit f15640c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

recipes/django/recipe.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
VERSION_django=${VERSION_django:-1.6.1}
4+
DEPS_django=(sqlite3)
5+
URL_django=https://pypi.python.org/packages/source/D/Django/Django-$VERSION_django.tar.gz
6+
MD5_django=3ea7a00ea9e7a014e8a4067dd6466a1b
7+
BUILD_django=$BUILD_PATH/django/$(get_directory $URL_django)
8+
RECIPE_django=$RECIPES_PATH/django
9+
10+
function prebuild_django() {
11+
true
12+
}
13+
14+
function shouldbuild_django() {
15+
if [ -d "$SITEPACKAGES_PATH/django" ]; then
16+
DO_BUILD=0
17+
fi
18+
}
19+
20+
function build_django() {
21+
cd $BUILD_django
22+
push_arm
23+
try $HOSTPYTHON setup.py install
24+
pop_arm
25+
}
26+
27+
function postbuild_django() {
28+
# ensure the blacklist doesn't contain wsgiref or unittest
29+
$SED '/unittest/d' $BUILD_PATH/blacklist.txt
30+
$SED '/wsgiref/d' $BUILD_PATH/blacklist.txt
31+
}

0 commit comments

Comments
 (0)