diff --git a/setup.py b/setup.py index 36c0c44..e90bcf3 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,13 @@ PYTHON = DIR / "src/fastjet" OUTPUT = PYTHON / "_fastjet_core" + +# Clean up transient directories to allow for rebuilds during development +if (DIR / "build").exists(): + shutil.rmtree(DIR / "build") +if OUTPUT.exists(): + shutil.rmtree(OUTPUT) + LIBS = [ "fastjet", "fastjettools",