Try to fix "sudo pip xxx" problem on CI platform
The main purpose of this patch is trying to fix the problem about
"sudo pip xxxx" error. In this patch, the following things will be
done.
1. Add a function which is used for checking pip environments in
iec-compass-build.sh.
The check_env function was added in iec-compass-build.sh file.
It will be used for checking whether there is any error when
running "sudo pip xxx" and "pip xxx" command. If error existed,
the pip software will be reinstall.
2. Remove the "sed" command which is used for replaceing the "sudo
pip xxx" command.
Since the compass requires some software which need to be run on
sudo mode, there is no need to replace those "sudo" command by
"python -m pip install xxx". So the replace cmd was removed.
Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I384e8213926e86ec9aafbcf20c3586291f63e016