Clean installed packages before CI sdist install

This commit is contained in:
Adriane Boyd 2020-11-16 10:46:39 +01:00
parent fb2c3075fd
commit 53493b032a
1 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,11 @@ jobs:
contents: 'spacy'
displayName: 'Delete source directory'
- script: |
pip freeze > installed.txt
pip uninstall -y -r installed.txt
displayName: 'Uninstall all packages'
- bash: |
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
pip install dist/$SDIST