1 MYDIR=$(dirname $(readlink -f "$0"))
2 CLIENT=$(echo python-python-tackerclient_*_all.deb)
3 CLIREPO="tacker-client"
5 # Function checks whether a python egg is available, if not, installs
8 IPPACK=$(python - <<'____EOF'
10 from os.path import join
11 for package in pip.get_installed_distributions():
12 print(package.location)
13 print(join(package.location, *package._get_metadata("top_level.txt")))
16 echo "$IPPACK" | grep -q "$PKG"
23 apt-get install -y python-all debhelper fakeroot
28 # Function installs python-tackerclient from github
29 function deployTackerClient() {
31 git clone -b 'SFC_refactor' https://github.com/trozet/python-tackerclient.git $CLIREPO
33 python setup.py --command-packages=stdeb.command bdist_deb
35 CLIENT=$(echo python-python-tackerclient_*_all.deb)
37 dpkg -i "${MYDIR}/${CLIENT}"