Skip to content

Commit

Permalink
Handle recent breaking changes in upstream pip
Browse files Browse the repository at this point in the history
Drop support for python2, while we are at it.
  • Loading branch information
ktf committed Jun 23, 2024
1 parent 339043d commit 76ab810
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build-any-ib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@ export PYTHONUSERBASE=$(mktemp -d)
export PATH=$PYTHONUSERBASE/bin:$PATH
export LD_LIBRARY_PATH=$PYTHONUSERBASE/lib:$LD_LIBRARY_PATH
# Set the default python and pip depending on the architecture...
case $ARCHITECTURE in
slc6*) PIP=pip PYTHON=python ;;
*) PIP=pip3 PYTHON=python3 ;;
esac
# ...and override it if PYTHON_VERSION is specified.
case "$PYTHON_VERSION" in
2) PIP=pip2 PYTHON=python2 ;;
3) PIP=pip3 PYTHON=python3 ;;
esac
PIP=pip3 PYTHON=python3
$PIP install --user --upgrade pip
$PIP install --user --upgrade "${ALIBUILD_SLUG:+git+https://github.com/}${ALIBUILD_SLUG:-alibuild}"
type aliBuild

Expand Down

0 comments on commit 76ab810

Please sign in to comment.