From dbca596b41a5c867b8bffb27d783b52aa393a860 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 15 Jan 2020 10:07:39 +1000 Subject: [PATCH] clean stale build folders before build setuptools will bundle up files from that folder even if they're no longer in the source tree. --- pylib/Makefile | 2 +- qt/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/Makefile b/pylib/Makefile index c3c72869f..83b2fe946 100644 --- a/pylib/Makefile +++ b/pylib/Makefile @@ -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/ diff --git a/qt/Makefile b/qt/Makefile index 115a95ca0..f5bdb480f 100644 --- a/qt/Makefile +++ b/qt/Makefile @@ -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/