aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2012-02-07 20:14:06 +0000
committerMichael Elkins <melkins@tislabs.com>2012-02-07 20:14:06 +0000
commit354779d487dbeb03fa4668093591547fc927e5ad (patch)
tree696fbfd1212b0a258dc02c8fb0be0f878e1ab360 /configure
parent9541365959d9b5c1cb2ee94f7cb9fc96eb3aaf14 (diff)
make configure detect when running inside of virtualenv so that the rpki.wsgi script can be generated properly
make rpki.wsgi be generated used a sed script rather than make-django-script svn path=/branches/tk161/; revision=4312
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index c15c6db1..92057799 100755
--- a/configure
+++ b/configure
@@ -640,6 +640,7 @@ LIBOBJS
DJANGO_ADMIN
DJANGO_DIR
SECRET_KEY
+VIRTUAL_ENV
OPENSSL_SO_GLOB
OPENSSL_CONFIG_COMMAND
RPKID_SUBDIRS
@@ -4928,6 +4929,18 @@ fi
if test $build_django = yes
then
+ { $as_echo "$as_me:$LINENO: checking if running under virtualenv" >&5
+$as_echo_n "checking if running under virtualenv... " >&6; }
+ if test x$VIRTUAL_ENV != x; then
+ VIRTUAL_ENV=$VIRTUAL_ENV
+
+ { $as_echo "$as_me:$LINENO: result: $VIRTUAL_ENV" >&5
+$as_echo "$VIRTUAL_ENV" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+
# source: http://blog.leosoto.com/2008/04/django-secretkey-generation.html
SECRET_KEY=`$PYTHON -c 'import random; print "".join(random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50))'`