diff options
author | John Snow <jsnow@redhat.com> | 2022-07-22 15:55:45 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2025-09-15 14:36:01 -0400 |
commit | fd0ed46d4effbf2700804657bad9c6db086527c4 (patch) | |
tree | 8ed0a65cb3d7e06ee6abf0ea9f635594c4270a5b /scripts/qapi/expr.py | |
parent | fcaeeb7653d2c6f38183170e1cae5729adb7875c (diff) | |
download | qemu-fd0ed46d4effbf2700804657bad9c6db086527c4.zip qemu-fd0ed46d4effbf2700804657bad9c6db086527c4.tar.gz qemu-fd0ed46d4effbf2700804657bad9c6db086527c4.tar.bz2 |
python: backport 'qmp-tui: Do not crash if optional dependencies are not met'
Based on the discussion at https://github.com/pypa/pip/issues/9726 -
even though the setuptools documentation implies that it is possible to
guard script execution with optional dependency groups, this is not true
in practice with the scripts generated by pip.
Just do the simple thing and guard the import statements.
Signed-off-by: John Snow <jsnow@redhat.com>
cherry picked from commit python-qemu-qmp@df520dcacf9a75dd4c82ab1129768de4128b554c
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions