Browse Source

fix: dev: [host] on debian 9, ``setuptools`` was not installed and required

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 4 years ago
parent
commit
d116de79e8
  1. 6
      precise/host/hooks/install.d/70-0k.sh

6
precise/host/hooks/install.d/70-0k.sh

@ -25,7 +25,11 @@ mkdir -p /opt/apps
git checkout 0k/prod/master git checkout 0k/prod/master
fi fi
pip install sact.epoch || exit 1
## Debian 9 did not have setuptool
if [ "$(python -c 'import setuptools' 2>&1 | tail -n 1)" == "ImportError: No module named setuptools" ]; then
pip install setuptools
fi
pip install sact.epoch
if [ "$(python -c 'import sact.epoch' 2>&1 | tail -n 1)" == "ImportError: No module named interface" ]; then if [ "$(python -c 'import sact.epoch' 2>&1 | tail -n 1)" == "ImportError: No module named interface" ]; then
echo "Error: conflicting installation of zope.interface detected. Trying workaround." echo "Error: conflicting installation of zope.interface detected. Trying workaround."
( (

Loading…
Cancel
Save