()
| 585 | |
| 586 | |
| 587 | def 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 | |
| 609 | def copy_and_fix_pyx_files(): |
no test coverage detected