canonical / data-platform-workflows

Reusable GitHub Actions workflows used by the Data Platform team
Apache License 2.0
4 stars 9 forks source link

patch: Install python3-pip with `--no-install-recommends` #187

Closed carlcsaposs-canonical closed 3 months ago

carlcsaposs-canonical commented 3 months ago

python3-pip recommends build-essential, which is a relatively large package we don't need

carlcsaposs-canonical commented 3 months ago

tested on https://github.com/canonical/pgbouncer-operator/pull/246

carlcsaposs-canonical commented 3 months ago

wouldnt this change affect more packages than just the build-essential package?

python3-venv doesn't recommend any packages python3-pip recommends build-essential and python3-dev https://packages.ubuntu.com/jammy/python3-pip, which will no longer be installed (which is what we want—we only want python3-pip for pipx)