Skip to content

Commit 2f09626

Browse files
committed
Fix GitHub CI around PyInstaller
1 parent ab3d9b3 commit 2f09626

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ jobs:
5050
5151
- name: Set up Python
5252
shell: bash -l {0}
53-
env:
54-
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
5553
run: |
56-
conda install -q -y python=$PYTHON_VERSION
54+
conda install -q -y python=${{ matrix.python-version }}
5755
which python
5856
python --version
5957
pip --version
@@ -62,15 +60,19 @@ jobs:
6260
shell: bash -l {0}
6361
run: |
6462
if [ "${{ matrix.PYTEST_QT_API }}" = "pyside2" ]; then
65-
if [ "${{ matrix.PYTHON_VERSION }}" = "2.7" ]; then
63+
if [ "${{ matrix.python-version }}" = "2.7" ]; then
6664
conda install -q -y 'pyside2!=5.12.4' -c conda-forge
6765
else
6866
conda install -q -y pyside2 -c conda-forge
6967
fi
7068
elif [ "${{ matrix.PYTEST_QT_API }}" = "pyqt4v2" ]; then
7169
conda install -q -y pyqt=4 -c conda-forge
7270
else # pyqt5
73-
conda install -q -y pyqt=5
71+
if [ "${{ matrix.python-version }}" = "2.7" ]; then
72+
conda install -q -y pyqt=5
73+
else
74+
pip install pyqt5
75+
fi
7476
fi
7577
if [ "${{ matrix.os }}" != "windows-latest" ]; then
7678
conda install -q -y help2man
@@ -137,7 +139,6 @@ jobs:
137139
if: matrix.PYTEST_QT_API == 'pyqt5' && matrix.python-version == '3.7'
138140
run: |
139141
# Build the standalone executable
140-
pip install 'pyinstaller!=3.4'
141-
pip install 'setuptools<45.0.0'
142+
pip install pyinstaller
142143
pyinstaller labelme.spec
143144
dist/labelme --version

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ jobs:
5858
- name: Run pyinstaller
5959
shell: bash -l {0}
6060
run: |
61-
pip install 'pyinstaller!=3.4'
62-
pip install 'setuptools<45.0.0'
61+
pip install pyinstaller
6362
pyinstaller labelme.spec
6463
6564
- name: Load release url file from release job

labelme.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ a = Analysis(
1818
hiddenimports=[],
1919
hookspath=[],
2020
runtime_hooks=[],
21-
excludes=['matplotlib'],
21+
excludes=[],
2222
)
2323
pyz = PYZ(a.pure, a.zipped_data)
2424
exe = EXE(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_install_requires():
3030

3131
install_requires = [
3232
"imgviz>=0.11.0",
33-
"matplotlib",
33+
"matplotlib<3.3", # for PyInstaller
3434
"numpy",
3535
"Pillow>=2.8.0",
3636
"PyYAML",

0 commit comments

Comments
 (0)