clear:build

Introduction

clear:build deletes Python bytecode caches and build artifacts across the workspace. Run it before a clean test run, or when stale bytecode misbehaves after you move or rename files.

splent clear:build
Are you sure you want to clear caches and build artifacts? [y/N]: y
  Cleared build artifacts (42 __pycache__ dirs removed).

Answer n, or press Enter, and it prints Cancelled. and deletes nothing.


What it deletes

It walks the whole workspace ($WORKING_DIR), virtual environments and .splent_cache/ included, and deletes

  • dist/ and build/ at the workspace root,
  • every *.egg-info, .pytest_cache/ and __pycache__/ directory,
  • every stray .pyc file.

It does not follow symlinked directories. The cached features themselves stay, since the cache commands manage them.

The release commands run the same cleanup, silently, on the package they are about to build.


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es