Skip to content

Commit 111bfbb

Browse files
committed
ADD: django recipe
1 parent 5a5e8ea commit 111bfbb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

recipes/django/recipe.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 build_django() {
15+
cd $BUILD_django
16+
push_arm
17+
try $HOSTPYTHON setup.py install
18+
pop_arm
19+
}
20+
21+
function postbuild_django() {
22+
# ensure the blacklist doesn't contain wsgiref or unittest
23+
$SED '/unittest/d' $BUILD_PATH/blacklist.txt
24+
$SED '/wsgiref/d' $BUILD_PATH/blacklist.txt
25+
}

0 commit comments

Comments
 (0)