From efe7523c40f1cc0321900e9f410e0dfaf17fa914 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 11 Jun 2020 18:41:09 -0700 Subject: [PATCH] build/bin/sage-pip-install: For PEP 517 packages, do not try to uninstall first --- build/bin/sage-pip-uninstall | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/bin/sage-pip-uninstall b/build/bin/sage-pip-uninstall index 8f7a1031998..cf737d0b6bf 100755 --- a/build/bin/sage-pip-uninstall +++ b/build/bin/sage-pip-uninstall @@ -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)"