Commit 525d33df authored by Hilal Ozdemir's avatar Hilal Ozdemir

dev.sh: no need for installing beiran and beiran plugins in dev.sh. just install the requirements

parent 498365c1
......@@ -33,19 +33,28 @@ STAMP=$(date +%s)
INSTALLED=0
LAST_INSTALL=$(date -r ${VIRTUAL_ENV_DIR}/.last_install +%s 2>/dev/null || echo "0")
if [ $LAST_INSTALL -eq 0 ]; then
DEV_SH_MODIFIED=$(date -r ${DIR}/dev.sh +%s)
if [ $DEV_SH_MODIFIED -gt $LAST_INSTALL ]; then
#install prerequisite package `yajl`
apt-get install libyajl2
apt-get install libyajl-dev
fi
# install beiran
${PYTHON_BINARY} setup.py install
packages="beiran plugins/*"
for package in $packages; do
package_name=$(basename $package)
if [ ! -h ${PKG_DIR}/$package_name ]; then
ln -s ${DIR}/$package ${PKG_DIR}/
fi
# install beiran_package_docker
cd ${DIR}/plugins/beiran_package_docker
${PYTHON_BINARY} setup.py install
INSTALLED=1
fi
if [ -f $package/requirements.txt ]; then
REQ_MODIFIED=$(date -r $package/requirements.txt +%s)
if [ $REQ_MODIFIED -gt $LAST_INSTALL ]; then
$PIP install -r $package/requirements.txt
INSTALLED=1
fi
fi
done
if [ $INSTALLED -eq 1 ]; then
echo $STAMP > ${VIRTUAL_ENV_DIR}/.last_install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment