clean stale build folders before build

setuptools will bundle up files from that folder even if they're
no longer in the source tree.
This commit is contained in:
Damien Elmes 2020-01-15 10:07:39 +10:00
parent c67aefa3ea
commit dbca596b41
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ CHECKDEPS := $(shell find anki tests -name '*.py' | grep -v buildinfo.py)
.PHONY: build
build: $(BUILD_STEPS) $(CHECKDEPS)
rm -rf dist
rm -rf dist build
python setup.py -q bdist_wheel
rsync -a dist/*.whl ../dist/

View File

@ -103,7 +103,7 @@ CHECKDEPS := $(shell find aqt tests -name '*.py' | grep -v buildinfo.py)
.PHONY: build
build: $(BUILD_STEPS)
rm -rf dist
rm -rf dist build
python setup.py -q bdist_wheel
rsync -a dist/*.whl ../dist/