MCPcopy Create free account
hub / github.com/cztomczak/cefpython / check_pyinstaller_version

Function check_pyinstaller_version

examples/pyinstaller/hook-cefpython3.py:49–59  ·  view source on GitHub ↗

Using is_module_satisfies() for pyinstaller fails when installed using 'pip install develop.zip' command (PyInstaller Issue #2802).

()

Source from the content-addressed store, hash-verified

47
48
49def check_pyinstaller_version():
50 """Using is_module_satisfies() for pyinstaller fails when
51 installed using 'pip install develop.zip' command
52 (PyInstaller Issue #2802)."""
53 # Example version string for dev version of pyinstaller:
54 # > 3.3.dev0+g5dc9557c
55 version = PyInstaller.__version__
56 match = re.search(r"^\d+\.\d+(\.\d+)?", version)
57 if not (match.group(0) >= PYINSTALLER_MIN_VERSION):
58 raise SystemExit("Error: pyinstaller %s or higher is required"
59 % PYINSTALLER_MIN_VERSION)
60
61
62def check_cefpython3_version():

Callers 1

hook-cefpython3.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected