From 16cb2dfb9b452d674911998f71fd62b3dce2a1e0 Mon Sep 17 00:00:00 2001 From: "Stephen J. Fuhry" Date: Thu, 21 Oct 2021 18:03:00 +0000 Subject: [PATCH] cleanup distribution dirs --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2b14b5e..a956458 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,12 @@ test: test_coverage: pytest --cov-report html --cov-config .coveragerc --cov $(PROJECT) -sdist: +clean_build_and_dist: + if [ -d build/ ]; then \ + rm -rf build/ dist/ ; \ + fi + +sdist: clean_build_and_dist python setup.py sdist bdist_wheel: