Use subprocess executable built by Python 3.4 to have the least amount of false-positives by AVs. Windows-only issue.
(python)
| 528 | |
| 529 | |
| 530 | def backup_subprocess_executable_issue342(python): |
| 531 | """Use subprocess executable built by Python 3.4 to have the least amount of |
| 532 | false-positives by AVs. Windows-only issue.""" |
| 533 | if not WINDOWS: |
| 534 | return |
| 535 | if python["version2"] == (2, 7): |
| 536 | print("[build_distrib.py] Backup subprocess executable built" |
| 537 | " with Python 3.4 (Issue #342)") |
| 538 | cefpython_binary_basename = get_cefpython_binary_basename( |
| 539 | get_os_postfix2_for_arch(python["arch"])) |
| 540 | cefpython_binary = os.path.join(BUILD_DIR, cefpython_binary_basename) |
| 541 | assert os.path.isdir(cefpython_binary) |
| 542 | src = os.path.join(cefpython_binary, "subprocess.exe") |
| 543 | dst = os.path.join(BUILD_CEFPYTHON, |
| 544 | "subprocess_py34_{arch}_issue342.exe" |
| 545 | .format(arch=python["arch"])) |
| 546 | shutil.copy(src, dst) |
| 547 | |
| 548 | |
| 549 | def restore_subprocess_executable_issue342(arch): |
no test coverage detected