refine python dependencies of thread-cert tests (#1876)

This commit is contained in:
Buke Po
2017-06-06 05:37:57 -07:00
committed by Jonathan Hui
parent 2debb19046
commit e0bc8648a3
2 changed files with 13 additions and 14 deletions
+9 -14
View File
@@ -36,18 +36,17 @@ set -x
cd /tmp || die
[ $TRAVIS_OS_NAME != linux ] || {
[ $TRAVIS_OS_NAME != linux ] || {
sudo apt-get update || die
pip install --upgrade pip || die
pip install --user pexpect || die
# Packages used by ncp tools.
pip install --user ipaddress || die
pip install --user scapy==2.3.2 || die
pip install --user pyserial || die
pip install --user git+https://github.com/openthread/pyspinel || die
[ $BUILD_TARGET != posix-distcheck -a $BUILD_TARGET != posix-32-bit -a $BUILD_TARGET != posix-ncp ] || {
pip install --upgrade pip || die
pip install --user -r $TRAVIS_BUILD_DIR/tests/scripts/thread-cert/requirements.txt || die
[ $BUILD_TARGET != posix-ncp ] || {
# Packages used by ncp tools.
pip install --user git+https://github.com/openthread/pyspinel || die
}
}
[ $BUILD_TARGET != pretty-check ] || {
wget http://jaist.dl.sourceforge.net/project/astyle/astyle/astyle%202.05.1/astyle_2.05.1_linux.tar.gz || die
@@ -98,10 +97,6 @@ cd /tmp || die
[ $BUILD_TARGET != posix -o $CC != clang ] || {
sudo apt-get install clang || die
}
# Packages used by sniffer
pip install --user pycryptodome==3.4.3 || die
pip install --user enum34 || die
}
[ $TRAVIS_OS_NAME != osx ] || {
@@ -0,0 +1,4 @@
enum34==1.1.2
ipaddress==1.0.16
pexpect==4.0.1
pycryptodome==3.4.3