Skip to content

Commit

Permalink
Add helper script to ensure django-clamd is reinstalled from PyPi aft…
Browse files Browse the repository at this point in the history
…er change of source location from Github
  • Loading branch information
asset-web committed Jun 20, 2024
1 parent e80a712 commit 73c488c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,3 +670,10 @@ def remove_incompleted_registrations(env="demo", use_local_mode=False, project_d

with change_dir(src_dir):
caller('%sbin/python3 manage.py remove_incompleted_registrations --settings=temmpo.settings.%s' % (venv_dir, env))

def force_reinstall_django_clamd_from_pypi(env="demo", use_local_mode=False, project_dir=PROJECT_ROOT):
use_local_mode = (str(use_local_mode).lower() == 'true')
caller, change_dir = _toggle_local_remote(use_local_mode)
venv_dir = project_dir + "lib/" + env + "/"
with change_dir(venv_dir+"src/temmpo/"):
caller('../../bin/pip install --force-reinstall django-clamd==1.0.0')

0 comments on commit 73c488c

Please sign in to comment.