Add quick dependency fix for djblets to setup.sh.

'pip install' doesn't work for djblets package, so it cannot be given
in pip-requires. Also, i've made some changes to djblets templates, so
it is obligatory to use forked repository in easy_install dependencies.
As an alternative, forked djblets sources can be downloaded directly
from git repository, unpacked and installed via setup.py install - all this
done inside setup.sh script. It is surely not the most proper way, but
is the fastest one.

Change-Id: Ibfbb2913ce4a31911ef5415deea99e6f99926c2e
This commit is contained in:
Timur Sufiev 2013-08-05 15:51:45 +04:00
parent 74f5da49f4
commit d7067dde14

View File

@ -17,6 +17,7 @@
LOGLVL=1
SERVICE_CONTENT_DIRECTORY=`cd $(dirname "$0") && pwd`
DJBLETS_ZIP_URL=https://github.com/tsufiev/djblets/archive
PREREQ_PKGS="wget make git python-pip python-dev python-mysqldb libxml2-dev libxslt-dev"
SERVICE_SRV_NAME="murano-dashboard"
GIT_CLONE_DIR=`echo $SERVICE_CONTENT_DIRECTORY | sed -e "s/$SERVICE_SRV_NAME//"`
@ -193,6 +194,15 @@ CLONE_FROM_GIT=$1
log "pip install \"$TRBL_FILE\" FAILS, exiting!!!"
exit 1
fi
curdir=`pwd`
cd $SERVICE_CONTENT_DIRECTORY/dist
wget $DJBLETS_ZIP_URL/master.zip
unzip master.zip
cd djblets-master
./setup.py install
cd ..
rm -r djblets*
cd $curdir
else
log "$MRN_CND_SPY not found!"
fi