Skip to content

Commit 974af0d

Browse files
ci: slim apt-get lists to libhdf5-dev only and use --yes (#15157)
Modern wheels (pillow, lxml, h5py, numpy/scipy, matplotlib) ship self-contained manylinux/musllinux wheels, so the long lists of -dev system libraries (libtiff/libjpeg/libopenjp2/freetype/harfbuzz/xml/ xslt/openblas/tk, etc.) are no longer needed to install or import the project's dependencies. Reduce each apt-get step to libhdf5-dev only (kept for now as a first step) and switch the deprecated -y flag to --yes. If CI stays green a follow-up can drop libhdf5-dev too, since h5py 3.16 ships wheels with a bundled HDF5 and nothing imports h5py directly.
1 parent 9391f54 commit 974af0d

3 files changed

Lines changed: 4 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- run: sudo apt-get update && sudo apt-get install -y libhdf5-dev
12+
- run: sudo apt-get update && sudo apt-get install --yes libhdf5-dev
1313
- uses: actions/checkout@v7
1414
- uses: astral-sh/setup-uv@v7
1515
with:

.github/workflows/project_euler.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ jobs:
1414
project-euler:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- run:
18-
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
19-
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
20-
libharfbuzz-dev libfribidi-dev libxcb1-dev
21-
libxml2-dev libxslt-dev
22-
libhdf5-dev
23-
libopenblas-dev
17+
- run: sudo apt-get update && sudo apt-get install --yes libhdf5-dev
2418
- uses: actions/checkout@v7
2519
- uses: astral-sh/setup-uv@v7
2620
- uses: actions/setup-python@v7
@@ -32,13 +26,7 @@ jobs:
3226
validate-solutions:
3327
runs-on: ubuntu-latest
3428
steps:
35-
- run:
36-
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
37-
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
38-
libharfbuzz-dev libfribidi-dev libxcb1-dev
39-
libxml2-dev libxslt-dev
40-
libhdf5-dev
41-
libopenblas-dev
29+
- run: sudo apt-get update && sudo apt-get install --yes libhdf5-dev
4230
- uses: actions/checkout@v7
4331
- uses: astral-sh/setup-uv@v7
4432
- uses: actions/setup-python@v7

.github/workflows/sphinx.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,7 @@ jobs:
2525
build_docs:
2626
runs-on: ubuntu-24.04-arm
2727
steps:
28-
- run:
29-
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
30-
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
31-
libharfbuzz-dev libfribidi-dev libxcb1-dev
32-
libxml2-dev libxslt-dev
33-
libhdf5-dev
34-
libopenblas-dev
28+
- run: sudo apt-get update && sudo apt-get install --yes libhdf5-dev
3529
- uses: actions/checkout@v7
3630
- uses: astral-sh/setup-uv@v7
3731
- uses: actions/setup-python@v7

0 commit comments

Comments
 (0)