Skip to content

Commit a390cbd

Browse files
author
petrnovota
committed
PyQt5 is already available for m1, no need for woraround
1 parent e4da54a commit a390cbd

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

docs/source/_static/install_depthai.sh

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ if [[ $(uname -s) == "Darwin" ]]; then
146146
python_executable=$(which python3.10)
147147
fi
148148

149-
# pip does not have pyqt5 for arm
150-
if [[ $(uname -m) == 'arm64' ]]; then
151-
echo "Installing pyqt5 with homebrew."
152-
brew install pyqt@5
153-
fi
154149

155150
# create python virtual environment
156151
echo "Creating python virtual environment in $VENV_DIR"
@@ -161,18 +156,7 @@ if [[ $(uname -s) == "Darwin" ]]; then
161156
python -m pip install --upgrade pip
162157

163158
# install launcher dependencies
164-
# only on mac silicon point PYTHONPATH to pyqt5 installation via homebrew, otherwise install pyqt5 with pip
165-
if [[ $(uname -m) == 'arm64' ]]; then
166-
if [[ ":$PYTHONPATH:" == *":/opt/homebrew/lib/python3.10/site-packages:"* ]]; then
167-
echo "/opt/homebrew/lib/python$nr_1.$nr_2/site-packages already in PYTHONPATH"
168-
else
169-
export "PYTHONPATH=/opt/homebrew/lib/python$nr_1.$nr_2/site-packages:"$PYTHONPATH
170-
echo "/opt/homebrew/lib/pythonv$nr_1.$nr_2/site-packages added to PYTHONPATH"
171-
fi
172-
else
173-
pip install pyqt5
174-
fi
175-
159+
pip install pyqt5
176160
pip install packaging
177161

178162
elif [[ $(uname -s) == "Linux" ]]; then

0 commit comments

Comments
 (0)