Commit 7516c35e authored by Alex Pyrgiotis's avatar Alex Pyrgiotis

ci: Add uninstall option

The uninstall option uses the "--uninstall" switch of `python setup.py
develop`. The behavior of the "--uninstall" switch can be found in the
setuptools docs [1].

[1] https://pythonhosted.org/setuptools/setuptools.html#develop
parent ea312629
#!/bin/sh
if [ -n "$VIRTUAL_ENV" ]; then
OPTIONS=--script-dir=$VIRTUAL_ENV/bin/
echo $OPTIONS
else
OPTIONS=
fi
. ./ci/config
#!/bin/sh
if [ -n "$VIRTUAL_ENV" ]; then
OPTIONS=--script-dir=$VIRTUAL_ENV/bin/
echo $OPTIONS
else
OPTIONS=
fi
# `cd` to the top dir of synnefo repository
set -e
cwd=`dirname $0`
cd "$cwd"/..
. ./ci/config
# Do common tasks for install/uninstall purposes
. ./ci/develop-common.sh
# Update version
devflow-update-version
......
#!/bin/sh
# `cd` to the top dir of synnefo repository
set -e
cwd=`dirname $0`
cd "$cwd"/..
# Do common tasks for install/uninstall purposes
. ./ci/develop-common.sh
for project in $PROJECTS; do
cd $project
python setup.py develop --uninstall $OPTIONS
cd -
done
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