tools/python: Clean python correctly
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.
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
# HG changeset patch
# Parent 33d596f46521ea852e90cf6dbdbf3680d104134ctools/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.
tools/python/Makefile +1 -0
@@ -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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: (V2) tools/python: Clean python correctly
Attached version 2, because it seems that despite my testing, "python setup.py clean" still doesn't actually clean enough.
Quoted 5 lines · Andrew Cooper
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 usingsetup.pyseems neater.
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
# HG changeset patch
# Parent 33d596f46521ea852e90cf6dbdbf3680d104134ctools/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.
tools/python/Makefile +1 -0
@@ -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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: (V2) tools/python: Clean python correctly
Andrew Cooper writes ("Re: [Xen-devel] (V2) tools/python: Clean python correctly"):
Quoted 8 lines
Attached version 2, because it seems that despite my testing, "python
setup.pyclean" still doesn't actually clean enough.Quoted 4 lines · Andrew Cooper
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 usingsetup.pyseems neater.
Perhaps removing the build directory would be better and faster and more reliable ?
Ian.
Re: (V2) tools/python: Clean python correctly
Quoted 5 lines · Ian Jackson
Andrew Cooper writes ("Re: [Xen-devel] (V2)
tools/python: Clean python correctly"):Quoted 4 lines
Attached version 2, because it seems that despite my testing, "python
setup.pyclean" still doesn't actually clean enough.On 14/08/12 15:10, Andrew Cooper wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
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 usingsetup.pyseems neater.Perhaps removing the build directory would be better and faster and more reliable ?
Ian.
That would put the code in line with tools/pygrub. Sec while I make a v3 patch
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
Re: (V3) tools/python: Clean python correctly
Quoted 10 lines · Andrew Cooper
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
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 usingsetup.pyseems neater.Perhaps removing the build directory would be better and faster and more reliable ?
Ian.
Attached
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
# HG changeset patch
# Parent 33d596f46521ea852e90cf6dbdbf3680d104134ctools/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.
tools/python/Makefile +1 -1
@@ -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)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Ian Campbell
Acked-byRe: (V3) tools/python: Clean python correctly
Quoted 7 lines · Andrew Cooper
tools/python: Clean python correctlyCleaning 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 <[email protected]>
And applied, thanks,
Ian.