# HG changeset patch
# User Pierre Augier <pierre.augier@univ-grenoble-alpes.fr>
# Date 1737618622 -3600
#      Thu Jan 23 08:50:22 2025 +0100
# Node ID 38b5bf8247940d125987b9c6a7eac439453729e5
# Parent  6061c9b8e3183643ed458ba4e7c314ecda2364e0
make: stop using setup.py clean (deprecated)

Direct calls of setup.py should not be used. There is no equivalent
to setup.py clean with PEP 517 frontends. We have to delete what
we want ourself.

diff --git a/Makefile b/Makefile
--- 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_*