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

Function clear_cache

tools/build.py:587–606  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

585
586
587def clear_cache():
588 print("[build.py] Clean build cache")
589 # Cache in CEFPYTHON_BINARY directory (eg. cefpython_linux64/)
590 os.chdir(CEFPYTHON_BINARY)
591 delete_files_by_pattern("./"+MODULE_NAME_TEMPLATE
592 .format(pyversion=PYVERSION, ext=MODULE_EXT))
593
594 # Cache in build_cefpython/ directory
595 os.chdir(BUILD_CEFPYTHON)
596
597 delete_files_by_pattern("./"+MODULE_NAME_TEMPLATE
598 .format(pyversion=PYVERSION, ext=MODULE_EXT))
599 delete_files_by_pattern("./*.pyx")
600
601 try:
602 if not FAST_FLAG:
603 # Cython's internal build/ directory
604 shutil.rmtree(os.path.join(BUILD_CEFPYTHON, "build"))
605 except OSError:
606 pass
607
608
609def copy_and_fix_pyx_files():

Callers 1

mainFunction · 0.85

Calls 1

delete_files_by_patternFunction · 0.70

Tested by

no test coverage detected