fix macOS ci

cv2_1
scito 2 years ago
parent cd07851e30
commit 9a308b148f

@ -25,10 +25,14 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install zbar lib for QReader
if: runner.os != 'Windows'
- name: Install zbar lib for QReader (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y libzbar0
- name: Install zbar lib for QReader (macOS)
if: runner.os == 'macOS'
run: |
brew install zbar
- name: Install dependencies
run: |
python -m pip install --upgrade pip

@ -50,6 +50,22 @@ options:
pip install -r requirements.txt
### Linux and macOS
For reading QR codes the zbar lib must be installed
#### Windows
The zbar DLLs are included with the Windows Python wheels. On other operating systems, you will need to install the zbar shared library.
#### Mac OS X
brew install zbar
#### Linux
sudo apt-get install libzbar0
Known to work with
* Python 3.10.8, protobuf 4.21.9, qrcode 7.3.1, and pillow 9.2

Loading…
Cancel
Save