add sevenv to getsestuff
This commit is contained in:
16
getsestuff
16
getsestuff
@ -269,6 +269,20 @@ def do_sshnicos():
|
||||
do_ssh()
|
||||
|
||||
|
||||
def do_sevenv():
|
||||
"""install python packages needed for seweb etc."""
|
||||
sevenv = join(home, 'sevenv')
|
||||
if not exists(join(sevenv, 'bin')):
|
||||
do(f'python3 -m venv {sevenv}')
|
||||
if exists(join(sevenv, 'bin')):
|
||||
for pkg in ['mlzlog', 'scipy', 'psutil', 'flask', 'gevent']:
|
||||
if not glob(f'{sevenv}/lib/python3*/site-packages/{pkg}'):
|
||||
if doit:
|
||||
do(f'{sevenv}/bin/python3 -m pip install {pkg}')
|
||||
else:
|
||||
print(f'missing {pkg} in sevenv')
|
||||
|
||||
|
||||
def do_frappy():
|
||||
"""Frappy framework"""
|
||||
frappydir = join(home, 'frappy')
|
||||
@ -555,7 +569,7 @@ else:
|
||||
for a in nc_actions:
|
||||
ncactionfuncs[a] = locals()['do_%s' % a]
|
||||
actions = ['bin', 'scfg', 'frappy', 'servicemanager', 'sea',
|
||||
'calcurves', 'feeder', 'seweb'] # 'ssh'
|
||||
'calcurves', 'feeder', 'seweb', 'sevenv'] # 'ssh'
|
||||
|
||||
actionfuncs = {}
|
||||
for a in actions:
|
||||
|
Reference in New Issue
Block a user