From 53493b032a35868d82cc8402f981a408f865c01d Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 16 Nov 2020 10:46:39 +0100 Subject: [PATCH] Clean installed packages before CI sdist install --- azure-pipelines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d9b1c5e94..d3a2a53b9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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