xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* tools/python: Clean python correctly
@ 2012-08-14 14:10 Andrew Cooper
  2012-08-14 16:54 ` (V2) " Andrew Cooper
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cooper @ 2012-08-14 14:10 UTC (permalink / raw)
  To: xen-devel@lists.xen.org, Ian Campbell, Ian Jackson

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

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


[-- Attachment #2: tools-python-clean.patch --]
[-- Type: text/x-patch, Size: 645 bytes --]

# 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 <andrew.cooper3@citrix.com>

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
 	rm -f $(XENPATH)
 	rm -rf *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc
 	rm -f xen/lowlevel/xl/_pyxl_types.h

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-17 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 14:10 tools/python: Clean python correctly Andrew Cooper
2012-08-14 16:54 ` (V2) " Andrew Cooper
2012-08-14 17:34   ` Ian Jackson
2012-08-14 17:41     ` Andrew Cooper
2012-08-14 17:45       ` (V3) " Andrew Cooper
2012-08-17 13:48         ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).