Reinitialize the virtualenv

In the previous patch removing the virtualenv-tools, we've updated
paths to the proper binaries, but we don't reset the virtualenv
like what we used to do.

Change-Id: I799bec0d7422406b5364407d7bf740612413959b
Partial-Bug: #1741634
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 16:31:47 +00:00
parent e251fedce8
commit adf76cdc43
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@
shell: |
find {{ searchlight_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ searchlight_bin | replace ('/','\/') }}\/python/' {{ searchlight_bin }}/*
virtualenv {{ searchlight_bin | dirname }}
when:
- not searchlight_developer_mode | bool
- searchlight_get_venv | success