blob: 7c9c13fa9fda36bcd86893b2363700372383f775 (
plain)
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
|