Skip to content

Commit b38bc01

Browse files
committed
WxPython building from source is slow, add --only-binary if it is available
1 parent 5d842f7 commit b38bc01

5 files changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/appimage-x86_64.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ jobs:
8585
python --version
8686
pip install -U pip
8787
pip install -U six wheel setuptools
88-
pip install -U wxPython==4.2.2
88+
# 1) Try binary wheels only (fast)
89+
# 2) Fallback to pip source build if wheels not available
90+
# 3) Final fallback: install system wxGTK package if build fails
91+
pip install --only-binary :all: -U wxPython==4.2.2 || pip install -U wxPython==4.2.2 || (sudo apt-get update && sudo apt-get install -y python3.13-wxgtk4.0 python3-wxgtk4.0)
8992
pip install -r requirements.txt
9093
python --version && pip freeze
9194
./build.sh

.github/workflows/mint_21_1.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ jobs:
7171

7272
- name: Install wxPython
7373
run: |
74-
python3 -m pip install wxPython==4.2.2
74+
# 1) Try binary wheels only (fast)
75+
# 2) Fallback to pip source build if wheels not available
76+
# 3) Final fallback: install system wxGTK package if build fails
77+
python3 -m pip install --only-binary :all: wxPython==4.2.2 || python3 -m pip install wxPython==4.2.2 || (sudo apt-get update && sudo apt-get install -y python3-wxgtk4.0 python3.11-wxgtk4.0)
7578
7679
- name: Install requirements
7780
run: python3 -m pip install -r requirements.txt

.github/workflows/ubuntu_20_04.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ jobs:
8282
python --version
8383
pip install -U pip
8484
pip install -U six wheel setuptools
85-
pip install -U wxPython==4.2.2
85+
# 1) Try binary wheels only (fast)
86+
# 2) Fallback to pip source build if wheels not available
87+
# 3) Final fallback: install system wxGTK package if build fails
88+
pip install --only-binary :all: -U wxPython==4.2.2 || pip install -U wxPython==4.2.2 || (sudo apt-get update && sudo apt-get install -y python3.13-wxgtk4.0 python3-wxgtk4.0)
8689
pip install -r requirements.txt
8790
python --version && pip freeze
8891
./build.sh

.github/workflows/ubuntu_22_04.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ jobs:
8282
python --version
8383
pip install -U pip
8484
pip install -U six wheel setuptools
85-
pip install -U wxPython==4.2.2
85+
# 1) Try binary wheels only (fast)
86+
# 2) Fallback to pip source build if wheels not available
87+
# 3) Final fallback: install system wxGTK package if build fails
88+
pip install --only-binary :all: -U wxPython==4.2.2 || pip install -U wxPython==4.2.2 || (sudo apt-get update && sudo apt-get install -y python3.13-wxgtk4.0 python3-wxgtk4.0)
8689
pip install -r requirements.txt
8790
python --version && pip freeze
8891
./build.sh

.github/workflows/ubuntu_24_04.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ jobs:
8484
python --version
8585
pip install -U pip
8686
pip install -U six wheel setuptools
87-
pip install -U wxPython==4.2.2
87+
# 1) Try binary wheels only (fast)
88+
# 2) Fallback to pip source build if wheels not available
89+
# 3) Final fallback: install system wxGTK package if build fails
90+
pip install --only-binary :all: -U wxPython==4.2.2 || pip install -U wxPython==4.2.2 || (sudo apt-get update && sudo apt-get install -y python3.13-wxgtk4.0 python3-wxgtk4.0)
8891
pip install -r requirements.txt
8992
python --version && pip freeze
9093
./build.sh

0 commit comments

Comments
 (0)