瀏覽代碼

Use pip install pyqt5 for Python 3.7 + macOS

Kentaro Wada 4 年之前
父節點
當前提交
160a1357d0
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/ci.yml

+ 5 - 1
.github/workflows/ci.yml

@@ -68,7 +68,11 @@ jobs:
         elif [ "${{ matrix.PYTEST_QT_API }}" = "pyqt4v2" ]; then
           conda install -q -y pyqt=4 -c conda-forge
         else  # pyqt5
-          conda install -q -y pyqt=5
+          if [ "${{ matrix.os }}" = "macos-latest" -a "${{ matrix.python-version }}" = "3.7" ]; then
+            pip install pyqt5
+          else
+            conda install -q -y pyqt=5
+          fi
         fi
         if [ "${{ matrix.os }}" != "windows-latest" ]; then
           conda install -q -y help2man