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

Function remove_unnecessary_package_files

tools/build_distrib.py:486–495  ·  view source on GitHub ↗

Do not ship sample applications (cefclient etc) with the package. They increase size and also are an additional unnecessary factor when dealing with false-positives in Anti-Virus software.

(arch)

Source from the content-addressed store, hash-verified

484
485
486def remove_unnecessary_package_files(arch):
487 """Do not ship sample applications (cefclient etc) with the package.
488 They increase size and also are an additional unnecessary factor
489 when dealing with false-positives in Anti-Virus software."""
490 print("[build_distrib.py] Reduce package size for {arch} (Issue #321)"
491 .format(arch=arch))
492 prebuilt_basename = get_cef_binaries_libraries_basename(
493 get_os_postfix2_for_arch(arch))
494 bin_dir = os.path.join(prebuilt_basename, "bin")
495 delete_cef_sample_apps(caller_script=__file__, bin_dir=bin_dir)
496
497
498def build_cefpython_modules(pythons, arch):

Callers 1

mainFunction · 0.85

Calls 3

get_os_postfix2_for_archFunction · 0.85
delete_cef_sample_appsFunction · 0.85

Tested by

no test coverage detected