Skip to content

Commit 40a78a0

Browse files
committed
pip without sudo
1 parent 97fc171 commit 40a78a0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: python
22

3-
python:
4-
- "3.8"
3+
#python:
4+
# - "3.8"
55

66
dist: focal
77

@@ -15,8 +15,6 @@ git:
1515

1616

1717
before_install:
18-
#- sudo apt-get update
19-
#- sudo apt-get install python3
2018
- source $TRAVIS_BUILD_DIR/install.sh
2119

2220
script:

install.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ INSTALL_NRF52=$([[ $INSTALL_PLATFORMS == *"nrf52"* || -z "$INSTALL_PLATFORMS" ]]
109109

110110
if [[ $INSTALL_ESP32 == 1 ]]; then
111111
echo -n "ESP32: "
112+
pip install pyserial
112113
DEPENDENCY_OUTPUT=$(arduino --install-boards esp32:esp32 2>&1)
113114
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96 OR CACHED"; else echo -e """$GREEN""\xe2\x9c\x93"; fi
114115
fi
@@ -139,11 +140,10 @@ fi
139140

140141
if [[ $INSTALL_NRF52 == 1 ]]; then
141142
echo -n "ADAFRUIT NRF5X: "
142-
sudo python3 -m pip install --upgrade pip
143-
sudo python3 -m pip install wheel
144-
sudo python3 -m pip install setuptools
145-
sudo python3 -m pip install adafruit-nrfutil
146-
sudo python3 -m pip install pyserial
143+
pip install wheel
144+
pip install setuptools
145+
pip install adafruit-nrfutil
146+
pip install pyserial
147147
DEPENDENCY_OUTPUT=$(arduino --install-boards adafruit:nrf52 2>&1)
148148
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96 OR CACHED"; else echo -e """$GREEN""\xe2\x9c\x93"; fi
149149
fi
@@ -168,7 +168,7 @@ export SKIP_COUNT=0
168168
export FAIL_COUNT=0
169169
export PDE_COUNT=0
170170
# close if [[ $# -eq 0 ]] ; then
171-
fi
171+
fi
172172
# build all of the examples for the passed platform
173173
#Sourcing and defining functions
174174
function build_platform()

0 commit comments

Comments
 (0)