diff --git a/Makefile b/Makefile
index 6061c9b8e3183643ed458ba4e7c314ecda2364e0_TWFrZWZpbGU=..38b5bf8247940d125987b9c6a7eac439453729e5_TWFrZWZpbGU= 100644
--- a/Makefile
+++ b/Makefile
@@ -83,7 +83,7 @@
 
 cleanbutpackages:
 	rm -f hg.exe
-	-$(PYTHON) setup.py clean --all # ignore errors from this command
+	rm -rf mercurial.egg-info dist
 	find contrib doc hgext hgext3rd i18n mercurial tests hgdemandimport \
 		\( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
 	rm -rf .venv_*