Fixed a pyqt5 version to avoid build error for pipenv

This commit is contained in:
tzutalin 2019-12-22 21:34:56 -08:00
parent 731735f187
commit bf8cc1d575
2 changed files with 3 additions and 4 deletions

View File

@ -69,14 +69,14 @@ matrix:
# Pipenv Python 3 + QT5 - Build .app
- os: osx
language: generic
python: "3.6"
python: "3.7"
env:
- PIPENV_VENV_IN_PROJECT=1
- PIPENV_IGNORE_VIRTUALENVS=1
install:
- pip3 install pipenv
- pipenv install pyqt5 lxml
- pipenv run pip install pyqt5 lxml
- pipenv run pip install pyqt5==5.13.2 lxml
- pipenv run make qt5py3
- rm -rf build dist
- pipenv run python setup.py py2app

View File

@ -97,8 +97,7 @@ Virtualenv can avoid a lot of the QT / Python version issues
brew install python3
pip3 install pipenv
pipenv --three # or pipenv install pyqt5 lxml
pipenv run pip install pyqt5 lxml
pipenv run pip install pyqt5==5.13.2 lxml
pipenv run make qt5py3
python3 labelImg.py
[Optional] rm -rf build dist; python setup.py py2app -A;mv "dist/labelImg.app" /Applications