From df550912e49000aed1742a824260d9274e5b6d41 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 28 Apr 2018 14:46:05 +0200 Subject: [PATCH] Explain setuptools build dir cleaning Put bdist_wheel after build_ext too, which seems more logical, though both variants work. --- build-wheels.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-wheels.bat b/build-wheels.bat index ac3996d..fd04ca7 100644 --- a/build-wheels.bat +++ b/build-wheels.bat @@ -42,7 +42,9 @@ if -%1-==-- goto end echo Building wheel for Python %1 -py -%1 setup.py clean --all bdist_wheel build_ext +:: Clean the setuptools build directory before building the wheel, to make sure +:: we build from scratch +py -%1 setup.py clean --all build_ext bdist_wheel if %errorlevel% neq 0 ( echo Check that you have the 'wheel' module installed for Python %1 and are echo building with the right compiler