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

Function check_cpp_extension_dependencies_issue359

tools/build_distrib.py:619–641  ·  view source on GitHub ↗

Windows only: check if msvcpXX.dll exist for all Python versions. Issue #359.

(setup_dir, all_pythons)

Source from the content-addressed store, hash-verified

617
618
619def check_cpp_extension_dependencies_issue359(setup_dir, all_pythons):
620 """Windows only: check if msvcpXX.dll exist for all Python versions.
621 Issue #359."""
622 if not WINDOWS:
623 return
624 checked_any = False
625 for python in all_pythons:
626 if python["version2"] in ((3, 5), (3, 6), (3, 7), (3, 8), (3, 9)):
627 checked_any = True
628 if not os.path.exists(os.path.join(setup_dir, "cefpython3",
629 "msvcp140.dll")):
630 raise Exception("C++ ext dependency missing: msvcp140.dll")
631 elif python["version2"] == (3, 4):
632 checked_any = True
633 if not os.path.exists(os.path.join(setup_dir, "cefpython3",
634 "msvcp100.dll")):
635 raise Exception("C++ ext dependency missing: msvcp100.dll")
636 elif python["version2"] == (2, 7):
637 if not os.path.exists(os.path.join(setup_dir, "cefpython3",
638 "msvcp90.dll")):
639 raise Exception("C++ ext dependency missing: msvcp90.dll")
640 checked_any = True
641 assert checked_any
642
643
644def test_wheel_packages(pythons):

Callers 1

make_packagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected