Remove build artifacts.
()
| 161 | |
| 162 | |
| 163 | def clean() -> None: |
| 164 | """Remove build artifacts.""" |
| 165 | paths_to_remove = ( |
| 166 | BUILD_DIR, |
| 167 | PYODIDE_DIR / ".pyodide_build", |
| 168 | PYODIDE_DIR / "dist", |
| 169 | PYODIDE_DIR / "ifcopenshell.egg-info", |
| 170 | PYODIDE_DIR / "src", |
| 171 | IFCOPENSHELL_DIR, |
| 172 | ) |
| 173 | for path in paths_to_remove: |
| 174 | if path.exists() or path.is_symlink(): |
| 175 | print(f"Removing {path}...") |
| 176 | Tools.rmrf(path) |
| 177 | print("✓ Clean complete") |
| 178 | |
| 179 | |
| 180 | def main() -> None: |