Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customize/pip: install pip via get-pip.py #146

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bin/customize/packages/pip
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _install() {
local cfg_file="${2:?Config file missing}"

print-header Install pip packages "[${selector}]..."
pip install --upgrade --no-warn-script-location --progress-bar ascii -r "${cfg_file}"
pip install --upgrade --no-warn-script-location -r "${cfg_file}"
print-finish
}

Expand All @@ -37,7 +37,11 @@ check-not-root

profile="${1:?Profile missing}"

install-apt python3-pip
print-header Install pip...
tmp_file=$(mktemp)
curl --disable --progress-bar --location -o "${tmp_file}" --url https://bootstrap.pypa.io/get-pip.py
sudo python3 "${tmp_file}" --root-user-action=ignore
print-finish

# shellcheck disable=SC2310,SC2311
if file=$(cfg-get "${profile}" packages/pip.global); then
Expand Down
Loading