Tweak how python packages are installed for backup app
per some issues i encountered with pip 20.3.3 and its "new resolver" although not totally clear what fixed it... :/
This commit is contained in:
parent
f87f1e875c
commit
9048403130
|
@ -127,13 +127,13 @@ def deploy_backup_app(c, deploy, envname, mkvirtualenv=True, user='rattail',
|
||||||
'rattail[backup]',
|
'rattail[backup]',
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
# these should be same as rattail[backup]
|
# TODO: these should be same as rattail[backup]
|
||||||
packages = [
|
packages = [
|
||||||
'msgpack',
|
'msgpack',
|
||||||
'borgbackup',
|
'borgbackup[fuse]',
|
||||||
'llfuse==1.3.4',
|
|
||||||
]
|
]
|
||||||
c.sudo("bash -l -c 'workon {} && cdvirtualenv && bin/pip install {}'".format(envname, ' '.join(packages)), user=user)
|
c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf {0}/bin/pip install {1}'".format(envpath, ' '.join(packages)),
|
||||||
|
user=user)
|
||||||
if link_borg_to_bin:
|
if link_borg_to_bin:
|
||||||
c.sudo("ln -sf {}/bin/borg /usr/local/bin/borg".format(envpath))
|
c.sudo("ln -sf {}/bin/borg /usr/local/bin/borg".format(envpath))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue