diff --git a/docs/source/_static/install_dependencies.sh b/docs/source/_static/install_dependencies.sh index c2d3e1b23..e383704d9 100755 --- a/docs/source/_static/install_dependencies.sh +++ b/docs/source/_static/install_dependencies.sh @@ -32,8 +32,6 @@ readonly ubuntu_pkgs=( libsm6 libxext6 libgl1-mesa-glx - python3-pyqt5 - python3-pyqt5.qtquick qml-module-qtquick-controls2 qml-module-qt-labs-platform qtdeclarative5-dev @@ -124,6 +122,16 @@ elif [ -f /etc/os-release ]; then python3 -m pip install --upgrade pip fi + if python3 -c "import PyQt5"; then + echo "PyQt5 already installed, skipping..." + else + if [[ -d /opt/ros ]]; then + echo "ROS detected - skipping \"python3-pyqt5\" and \"python3-pyqt5.qtquick\" installation. These packages can break ROS installation so please install them manually if needed" + else + sudo apt-get install -y python3-pyqt5 python3-pyqt5.qtquick + fi + fi + dpkg -s uvcdynctrl > /dev/null 2>&1 # is uvcdynctrl installed if [ $? -eq 0 ]; then