File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ elif [[ $(uname -s) == "Linux" ]]; then
210210 # install python 3.10
211211 if [ " $install_python " == " true" ]; then
212212 echo " installing python 3.10"
213-
213+
214214 sudo yes " " | sudo add-apt-repository ppa:deadsnakes/ppa
215215 sudo apt -y install python3.10
216216 sudo apt -y install python3.10-venv
@@ -219,13 +219,21 @@ elif [[ $(uname -s) == "Linux" ]]; then
219219
220220 echo " Creating python virtual environment in $VENV_DIR "
221221
222- " $python_executable " -m venv " $VENV_DIR "
222+ machine=$( uname -m)
223+ if [[ $machine != ' armv6l' && $machine != ' armv7l' && $machine != ' aarch64' && $machine != ' arm64' ]]; then
224+ " $python_executable " -m venv " $VENV_DIR "
225+ else
226+ " $python_executable " -m venv " $VENV_DIR " --system-site-packages
227+ fi
223228
224229 source " $VENV_DIR /bin/activate"
225230 python -m pip install --upgrade pip
226231
227232 pip install packaging
228- pip install pyqt5
233+
234+ if [[ $machine != ' armv6l' && $machine != ' armv7l' && $machine != ' aarch64' && $machine != ' arm64' ]]; then
235+ pip install pyqt5
236+ fi
229237else
230238 echo " Error: Host $( uname -s) not supported."
231239 exit 99
You can’t perform that action at this time.
0 commit comments