Skip to content

Commit

Permalink
step-registry/upi/gcp: Remove pip usage
Browse files Browse the repository at this point in the history
We should have python3 with pyyaml in the latest image.
  • Loading branch information
cgwalters committed Apr 6, 2021
1 parent 910b93c commit 9314a24
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ci-operator/step-registry/upi/conf/gcp/upi-conf-gcp-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,8 @@ if [[ -s "${SHARED_DIR}/xpn.json" ]]; then
HOST_PROJECT_COMPUTE_SUBNET_NAME="$(basename "${HOST_PROJECT_COMPUTE_SUBNET}")"
fi

if ! pip -V; then
echo "pip is not installed: installing"
if python -c "import sys; assert(sys.version_info >= (3,0))"; then
python -m ensurepip --user || easy_install --user 'pip'
else
echo "python < 3, installing pip<21"
python -m ensurepip --user || easy_install --user 'pip<21'
fi
fi
export PATH="${HOME}/.local/bin:${PATH}"

echo "Installing python modules: yaml"
python -c "import yaml" || pip install --user pyyaml

### Empty the compute pool (optional)
echo "Emptying the compute pool..."
python -c '
Expand Down

0 comments on commit 9314a24

Please sign in to comment.