Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge #31423
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Mar 10, 2021
2 parents e1f9511 + efe7523 commit 1f961aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/bin/sage-dist-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ sdh_pip_install() {
local sudo="$SAGE_SUDO"
fi
$sudo sage-pip-uninstall "$@" || \
sdh_die "Error uninstalling a previous version of $PKG_NAME"
echo 2>&1 "Warning: Failure trying to uninstall a previous version of $PKG_NAME"

mkdir -p dist
rm -f dist/*.whl
Expand Down
5 changes: 5 additions & 0 deletions build/bin/sage-pip-uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ PYTHON=python3
# The PIP variable is only used to determine the name of the lock file.
PIP=pip3

# For PEP 517 packages, do not try to uninstall
if [ ! -f setup.py ]; then
exit 0
fi

# Find out the name of the package that we are installing
name="$($PYTHON setup.py --name)"

Expand Down

0 comments on commit 1f961aa

Please sign in to comment.