From 40a78a0abad32d256a12f23d5f2ff97d1f69cff0 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 4 May 2021 23:45:57 +0700 Subject: [PATCH] pip without sudo --- .travis.yml | 6 ++---- install.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index d4c3511..5bd69b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python -python: - - "3.8" +#python: +# - "3.8" dist: focal @@ -15,8 +15,6 @@ git: before_install: - #- sudo apt-get update - #- sudo apt-get install python3 - source $TRAVIS_BUILD_DIR/install.sh script: diff --git a/install.sh b/install.sh index 11539a0..6080edc 100755 --- a/install.sh +++ b/install.sh @@ -109,6 +109,7 @@ INSTALL_NRF52=$([[ $INSTALL_PLATFORMS == *"nrf52"* || -z "$INSTALL_PLATFORMS" ]] if [[ $INSTALL_ESP32 == 1 ]]; then echo -n "ESP32: " + pip install pyserial DEPENDENCY_OUTPUT=$(arduino --install-boards esp32:esp32 2>&1) if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96 OR CACHED"; else echo -e """$GREEN""\xe2\x9c\x93"; fi fi @@ -139,11 +140,10 @@ fi if [[ $INSTALL_NRF52 == 1 ]]; then echo -n "ADAFRUIT NRF5X: " - sudo python3 -m pip install --upgrade pip - sudo python3 -m pip install wheel - sudo python3 -m pip install setuptools - sudo python3 -m pip install adafruit-nrfutil - sudo python3 -m pip install pyserial + pip install wheel + pip install setuptools + pip install adafruit-nrfutil + pip install pyserial DEPENDENCY_OUTPUT=$(arduino --install-boards adafruit:nrf52 2>&1) if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96 OR CACHED"; else echo -e """$GREEN""\xe2\x9c\x93"; fi fi @@ -168,7 +168,7 @@ export SKIP_COUNT=0 export FAIL_COUNT=0 export PDE_COUNT=0 # close if [[ $# -eq 0 ]] ; then -fi +fi # build all of the examples for the passed platform #Sourcing and defining functions function build_platform()