From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: (V3) tools/python: Clean python correctly Date: Tue, 14 Aug 2012 18:45:39 +0100 Message-ID: <502A8EC3.1020107@citrix.com> References: <502A5C58.5050001@citrix.com> <502A82DA.7000205@citrix.com> <20522.35865.492083.486374@mariner.uk.xensource.com> <502A8DD7.3080504@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080008020204040007010304" Return-path: In-Reply-To: <502A8DD7.3080504@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: Ian Jackson Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --------------080008020204040007010304 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 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. >> Perhaps removing the build directory would be better and faster and >> more reliable ? >> >> Ian. >> >> Attached -- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com --------------080008020204040007010304 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 completely remove the build/ directory, 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 @@ -34,7 +34,7 @@ test: .PHONY: clean clean: rm -f $(XENPATH) - rm -rf *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc + rm -rf build/ *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc rm -f xen/lowlevel/xl/_pyxl_types.h rm -f xen/lowlevel/xl/_pyxl_types.c rm -f $(DEPS) --------------080008020204040007010304 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 --------------080008020204040007010304--