Skip to content

Django recipe #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions recipes/django/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

VERSION_django=${VERSION_django:-1.6.1}
DEPS_django=(sqlite3)
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
}