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
210
210
# install python 3.10
211
211
if [ " $install_python " == " true" ]; then
212
212
echo " installing python 3.10"
213
-
213
+
214
214
sudo yes " " | sudo add-apt-repository ppa:deadsnakes/ppa
215
215
sudo apt -y install python3.10
216
216
sudo apt -y install python3.10-venv
@@ -219,13 +219,21 @@ elif [[ $(uname -s) == "Linux" ]]; then
219
219
220
220
echo " Creating python virtual environment in $VENV_DIR "
221
221
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
223
228
224
229
source " $VENV_DIR /bin/activate"
225
230
python -m pip install --upgrade pip
226
231
227
232
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
229
237
else
230
238
echo " Error: Host $( uname -s) not supported."
231
239
exit 99
You can’t perform that action at this time.
0 commit comments