File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,8 @@ WIRINGPI_URL_ARM64="https://github.com/WiringPi/WiringPi/releases/download/2.61-
22
22
INFLUXDB1_VERSION=" 1.8.10"
23
23
INFLUXDB2_VERSION=" 2.6.1"
24
24
25
- VIRTUALENV_VERSION=" 20.17.1"
26
-
27
25
# Required apt packages
28
- APT_PKGS=" gawk gcc g++ git jq libatlas-base-dev libffi-dev libi2c-dev logrotate moreutils netcat-openbsd nginx python3 python3-pip python3-dev python3-setuptools rng-tools sqlite3 unzip wget"
29
-
30
- PYTHON_BINARY_SYS_LOC=" $( python3 -c " import os; print(os.environ['_'])" ) "
26
+ APT_PKGS=" gawk gcc g++ git jq libatlas-base-dev libffi-dev libi2c-dev logrotate moreutils netcat-openbsd nginx python3 python3-dev python3-pip python3-setuptools python3-venv rng-tools sqlite3 unzip wget"
31
27
32
28
UNAME_TYPE=$( uname -m)
33
29
MACHINE_TYPE=$( dpkg --print-architecture)
@@ -220,10 +216,9 @@ case "${1:-''}" in
220
216
' setup-virtualenv' )
221
217
printf " \n#### Checking Python 3 virtual environment\n"
222
218
if [[ ! -e ${MYCODO_PATH} /env/bin/python ]]; then
223
- printf " #### Creating virtualenv with ${PYTHON_BINARY_SYS_LOC} at " ${MYCODO_PATH} " /env\n"
224
- python3 -m pip install --break-system-packages virtualenv==${VIRTUALENV_VERSION}
219
+ printf " #### Creating virtual environment at " ${MYCODO_PATH} " /env\n"
225
220
rm -rf " ${MYCODO_PATH} " /env
226
- python3 -m virtualenv -p " ${PYTHON_BINARY_SYS_LOC} " " ${MYCODO_PATH} " /env
221
+ python3 -m venv " ${MYCODO_PATH} " /env
227
222
fi
228
223
;;
229
224
' setup-virtualenv-full' )
@@ -582,7 +577,6 @@ case "${1:-''}" in
582
577
apt remove -y apache2
583
578
apt install -y ${APT_PKGS}
584
579
apt clean
585
- python3 -m pip install --break-system-packages --upgrade pip
586
580
;;
587
581
' update-permissions' )
588
582
printf " \n#### Setting permissions\n"
You can’t perform that action at this time.
0 commit comments