File: __init__.py

package info (click to toggle)
openvswitch 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 97,848 kB
  • sloc: sh: 1,643,930; ansic: 313,386; python: 27,939; xml: 21,526; makefile: 546; javascript: 191
file content (13 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
""" Global flow library entrypoint.
"""
for libname in ["netaddr", "pyparsing"]:
    try:
        lib = __import__(libname)
    except ModuleNotFoundError as e:
        raise ImportError(
            f"OVS Flow library requires {libname} to be installed."
            " To install all the dependencies needed for the Flow library, run"
            " 'pip install -e ovs[flow]' (or 'pip install -e .[flow]' locally)"
        ) from e
    else:
        globals()[libname] = lib