Skip to content

Commit

Permalink
patch: Install python3-pip with --no-install-recommends (#187)
Browse files Browse the repository at this point in the history
python3-pip recommends build-essential, which is a relatively large
package we don't need
  • Loading branch information
carlcsaposs-canonical authored Jun 11, 2024
1 parent 4885220 commit 9e51d37
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
run: |
sudo apt-get update
sudo apt-get install python3-pip python3-venv -y
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ jobs:
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
run: |
sudo apt-get update
sudo apt-get install python3-pip python3-venv -y
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ jobs:
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
run: |
sudo apt-get update
sudo apt-get install python3-pip python3-venv -y
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/integration_test_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ jobs:
if: ${{ inputs.architecture == 'arm64' || matrix.groups.self_hosted }}
run: |
sudo apt-get update
sudo apt-get install python3-pip python3-venv -y
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install --user pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
Expand Down

0 comments on commit 9e51d37

Please sign in to comment.