diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-10-20 14:33:15 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-10-20 14:33:15 +0530 |
commit | 53a9259d0e749a3bebc3ecc998962812ae307be8 (patch) | |
tree | e32c6dc2ecb136f6ed21db0b58960b209be9c67f | |
parent | b64742982390f97140cc445cf88fa40c69ecc1dc (diff) |
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | install-wa2.sh | 1 | ||||
-rwxr-xr-x | prerequisites.sh | 24 |
2 files changed, 8 insertions, 17 deletions
diff --git a/install-wa2.sh b/install-wa2.sh index b7fa1b3..701754f 100755 --- a/install-wa2.sh +++ b/install-wa2.sh @@ -1,6 +1,7 @@ BUILD_TOOLS_URL=$1 WA_HOME_URL=$2 +export PATH=$PATH:/usr/local/bin # install SDK build-tools echo "install SDK build-tools" cd /usr/ diff --git a/prerequisites.sh b/prerequisites.sh index 7010cc0..2ad7fbf 100755 --- a/prerequisites.sh +++ b/prerequisites.sh @@ -1,24 +1,14 @@ +apt-get -y install python-pip || true +which pip pip --version sudo chmod -R a+r /usr/local/lib/python2.7/dist-packages sudo find /usr/local/lib/python2.7/dist-packages -type d -exec chmod a+x {} \; -sudo pip install --upgrade pip -sudo pip install --upgrade setuptools -pip --version - -mkdir /home/test - -useradd test -d /home/test -g sudo -echo "test ALL=(ALL:ALL) ALL" >> /etc/sudoers - -su test -id +sudo pip install --upgrade pip --force +which pip pip --version -sudo chmod -R a+r /usr/local/lib/python2.7/dist-packages -sudo find /usr/local/lib/python2.7/dist-packages -type d -exec chmod a+x {} \; -sudo pip install --upgrade pip sudo pip install --upgrade setuptools -pip --version -exit -id +sudo pip install --upgrade pip --force +export PATH=$PATH:/usr/local/bin +which pip pip --version exit 0 |