Windows only: check if msvcpXX.dll exist for all Python versions. Issue #359.
(setup_dir, all_pythons)
| 617 | |
| 618 | |
| 619 | def 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 | |
| 644 | def test_wheel_packages(pythons): |