MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _check_versions

Function _check_versions

lib/matplotlib/__init__.py:246–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244
245
246def _check_versions():
247
248 # Quickfix to ensure Microsoft Visual C++ redistributable
249 # DLLs are loaded before importing kiwisolver
250 from . import ft2font # noqa: F401
251
252 for modname, minver in [
253 ("cycler", "0.10"),
254 ("dateutil", "2.7"),
255 ("kiwisolver", "1.3.1"),
256 ("numpy", "1.25"),
257 ("pyparsing", "2.3.1"),
258 ]:
259 module = importlib.import_module(modname)
260 if parse_version(module.__version__) < parse_version(minver):
261 raise ImportError(f"Matplotlib requires {modname}>={minver}; "
262 f"you have {module.__version__}")
263
264
265_check_versions()

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…