Skip to content

Commit 585e120

Browse files
committed
ignore -f lines in pip freeze output
Newer versions of pip include the wheelhouse specification in the pip freeze output, which then breaks the call to pip uninstall. Ignore the line starting with "-f" to avoid the error and make wipeenv work properly again. Change-Id: Ibff7e40f620b08e685d5c6691576e527cbeb5510
1 parent 897ae17 commit 585e120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenvwrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ function wipeenv {
12071207
echo "Uninstalling packages:"
12081208
cat "$req_file"
12091209
echo
1210-
pip uninstall -y $(cat "$req_file" | sed 's/>/=/g' | cut -f1 -d=)
1210+
pip uninstall -y $(cat "$req_file" | grep -v '^-f' | sed 's/>/=/g' | cut -f1 -d=)
12111211
else
12121212
echo "Nothing to remove."
12131213
fi

0 commit comments

Comments
 (0)