Skip to content

Adjust package installation in Linux/macOS CI - #9954

Open
akx wants to merge 5 commits into
python-pillow:mainfrom
akx:faster-linux-ci
Open

Adjust package installation in Linux/macOS CI#9954
akx wants to merge 5 commits into
python-pillow:mainfrom
akx:faster-linux-ci

Conversation

@akx

@akx akx commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Sibling to #9945.

I noticed the "Install dependencies" step in CI takes a while – this PR:

  • adjusts the apt dependencies:
    • All packages are now installed in a single apt-get invocation, so it doesn't spend time reading databases and deps and so on twice
    • --no-install-recommends skips installing packages that aren't evidently needed here
    • I presume libopenblas-dev had been a relic from a time where numpy could have needed building?
    • There are now notes for a couple deps that aren't quite obvious:
  • adjusts pip installation:
    • all packages are now installed in a single invocation, similar overhead reasons as above
    • wheel is dropped; unless you need the wheel CLI command, it hasn't been required since Setuptools 70 (May 2024)

@radarhere

radarhere commented Sep 3, 2026

Copy link
Copy Markdown
Member

I presume libopenblas-dev had been a relic from a time where numpy could have needed building?

Correct. #7403

@akx
akx marked this pull request as ready for review September 3, 2026 14:45
@akx

akx commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

The gains seem to be modest but there, depending on job. 👍

And if something happens with #9901, it's easier to find another package we don't need to install...

akx added 4 commits September 5, 2026 15:59
- add `--no-install-recommends`
- libopenblas-dev doesn't seem to be required
- add netpbm explicitly
- note why imagemagick is needed
Comment thread .ci/install.sh Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants