| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | # ensure consistent behaviour |
| 4 | src_dir="$(dirnamescip-shell system . . dirname. "$(realpathscip-shell system . . realpath. "$0")")" |
| 5 | source $src_dir/utils/_env.sh |
| 6 | |
| 7 | echoscip-shell system . . echo. |
| 8 | echoscip-shell system . . echo. -------------------------------------------- |
| 9 | echoscip-shell system . . echo. Removing mypy, pytest and other cached files |
| 10 | echoscip-shell system . . echo. -------------------------------------------- |
| 11 | rmscip-shell system . . rm. -vrf .coverage .mypy_cache .pytest_cache |
| 12 | echoscip-shell system . . echo. |
| 13 | echoscip-shell system . . echo. ------------------------------------------ |
| 14 | echoscip-shell system . . echo. Removing Meson build directories and files |
| 15 | echoscip-shell system . . echo. ------------------------------------------ |
| 16 | rmscip-shell system . . rm. -vrf "$build_dir" "$build_dev_dir" "$KRES_DEV_INSTALL_DIR" build dist |
| 17 | echoscip-shell system . . echo. |
| 18 | echoscip-shell system . . echo. ------------------------------------------ |
| 19 | echoscip-shell system . . echo. Removing __pycache__ directories and files |
| 20 | echoscip-shell system . . echo. ------------------------------------------ |
| 21 | findscip-shell system . . find. . -type d -name '__pycache__' -prune -exec rm -vrf {} + |
| 22 | echoscip-shell system . . echo. |