From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: (V2) tools/python: Clean python correctly Date: Tue, 14 Aug 2012 17:54:50 +0100 Message-ID: <502A82DA.7000205@citrix.com> References: <502A5C58.5050001@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060407050907020200050608" Return-path: In-Reply-To: <502A5C58.5050001@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" , Ian Campbell , Ian Jackson List-Id: xen-devel@lists.xenproject.org --------------060407050907020200050608 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Attached version 2, because it seems that despite my testing, "python setup.py clean" still doesn't actually clean enough. On 14/08/12 15:10, Andrew Cooper wrote: > I discovered this with repeated calls to "make clean; make dist-tools" > > An alternative, if you wish to remove the use of $(PYTHON) from the > clean path is to just `rm -rf build`, but using setup.py seems neater. > -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com --------------060407050907020200050608 Content-Type: text/x-patch; name="tools-python-clean.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tools-python-clean.patch" # HG changeset patch # Parent 33d596f46521ea852e90cf6dbdbf3680d104134c tools/python: Clean python correctly Cleaning the python directory should call `$(PYTHON) setup.py clean` which will clean the build/ subdirectory. Otherwise, subsequent builds may be short-circuited and a stale build installed. Signed-off-by: Andrew Cooper diff -r 33d596f46521 tools/python/Makefile --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -33,6 +33,7 @@ test: .PHONY: clean clean: + $(PYTHON) setup.py clean --all rm -f $(XENPATH) rm -rf *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc rm -f xen/lowlevel/xl/_pyxl_types.h --------------060407050907020200050608 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------060407050907020200050608--