thumbor: Fix missing virtualenv-clone package in dependencies.

This package is important in order to avoid scary-looking errors
whenever we upgrade the dependencies in thumbor.txt (where
virtualenv-clone isn't installed in the venv, and then gets installed
by the code we just added a TODO comment to.
This commit is contained in:
Tim Abbott
2018-07-30 11:54:12 -07:00
parent a5407e1c7d
commit 30a3c48ff3
3 changed files with 7 additions and 0 deletions

View File

@@ -157,6 +157,9 @@ def try_to_copy_venv(venv_path, new_packages):
source=source_venv_path,
target=venv_path).split()
try:
# TODO: We can probably remove this in a few months, now
# that we can expect that virtualenv-clone is present in
# all of our recent virtualenvs.
run(cmd)
except Exception:
# Virtualenv-clone is not installed. Install it and try running