Skip to content

Commit

Permalink
Remove pip uninstall temporary directories
Browse files Browse the repository at this point in the history
Pip leaves behind directories with names starting with `~` in the
site-packages directory due to a bug that occurs when uninstalling
packages from an NFS filesystem.

See pypa/pip#6327.

Fixes #206.
  • Loading branch information
lpsinger committed Aug 14, 2019
1 parent 5a2e794 commit c1b0fd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ release:
set -e
pip install --upgrade pipenv pip setuptools
pipenv install --system --deploy
# FIXME: remove pip uninstall temporary directories left behind due to
# bug with pip on NFS. See https://github.com/pypa/pip/issues/6327
chmod -R ug+rwx .local/lib/python3.6/site-packages/~*
rm -rf .local/lib/python3.6/site-packages/~*
gwcelery condor resubmit
EOF
Expand Down

0 comments on commit c1b0fd2

Please sign in to comment.