Skip to content

Commit

Permalink
Update TTS plugin installation to allow fallback to pre-release version
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Sep 12, 2024
1 parent 2680f43 commit ba6f154
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neon_audio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ba6f154

Please sign in to comment.