aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-06-29 11:36:44 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-06-29 11:36:44 +0800
commitf0e6a736f8cc1f98e5f067b4e433f5af594e7c48 (patch)
treebf39c6544f53039c6f791d6a3981a05e317aafd7 /build.sh
parent7107ed60659e23863ffcd227600bf741489f24d8 (diff)
Fix python pkg issue
1 add install pyyaml in build process 2 fix python pkg version Change-Id: Icb40bd52aa6cd22874894047561acb9211abfa22 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 3665f6e2..0b91887d 100755
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ echo $COMPASS_PATH
REDHAT_REL=${REDHAT_REL:-"false"}
-PACKAGES="curl"
+PACKAGES="curl python-pip"
mkdir -p $WORK_DIR $CACHE_DIR
@@ -65,10 +65,12 @@ function prepare_env()
if ! apt --installed list 2>/dev/null |grep "\<$i\>"
then
sudo apt-get install -y --force-yes $i
+ sudo pip install pyyaml
fi
fi
if [[ $REDHAT_REL == true ]]; then
sudo yum install $i -y
+ sudo pip install pyyaml
fi
done
set -e