Improved how we deal with requirements.txt installation process results.

pull/1407/head v0.9.6-beta.4
morpheus65535 3 years ago
parent 84a1c265ce
commit 4ef35c5527

@ -56,10 +56,17 @@ if not args.no_update:
logging.info('BAZARR unable to install requirements (user without home directory).')
else:
logging.info('BAZARR installing requirements...')
subprocess.call([sys.executable, '-m', 'pip', 'install', '--user', '-r',
os.path.join(os.path.dirname(__file__), '..', 'requirements.txt')],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
logging.info('BAZARR requirements installed.')
try:
subprocess.check_output([sys.executable, '-m', 'pip', 'install', '--user', '-qq',
'--disable-pip-version-check', '--no-color', '-r',
os.path.join(os.path.dirname(__file__), '..', 'requirements.txt')],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
logging.exception('BAZARR requirements.txt installation result: {}'.format(e.stdout))
os._exit(1)
else:
logging.info('BAZARR requirements installed.')
try:
restart_file = io.open(os.path.join(args.config_dir, "bazarr.restart"), "w", encoding='UTF-8')
except Exception as e:

Loading…
Cancel
Save