From ba6f154f8bf8cd2029ddc438a7451aebea719e1d Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 12 Sep 2024 10:21:34 -0700 Subject: [PATCH] Update TTS plugin installation to allow fallback to pre-release version --- neon_audio/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neon_audio/utils.py b/neon_audio/utils.py index 6a2b090..24227f6 100644 --- a/neon_audio/utils.py +++ b/neon_audio/utils.py @@ -89,6 +89,10 @@ def install_tts_plugin(plugin: str) -> bool: LOG.info(f"Constraints={constraints}") LOG.info(f"Requested installation of plugin: {plugin}") returned = pip.main(['install', _plugin_to_package(plugin), "-c", tmp_file]) + if returned != 0: + LOG.warning(f"Installation failed. attempting with pre-release enabled") + returned = pip.main(['install', '--pre', _plugin_to_package(plugin), + "-c", tmp_file]) LOG.info(f"pip status: {returned}") return returned == 0