From 507296e9df2ae720a78afdb848cbc11a2bb75c12 Mon Sep 17 00:00:00 2001 From: Timothy Morton Date: Fri, 4 Jan 2019 15:14:12 -0500 Subject: [PATCH 1/2] add deletion of python-installed classy binary to make clean --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index b85b59932..85377537b 100755 --- a/Makefile +++ b/Makefile @@ -195,3 +195,4 @@ clean: .base rm -f libclass.a rm -f $(MDIR)/python/classy.c rm -rf $(MDIR)/python/build + rm -f $(shell python -c "import classy; print(classy.__file__)") From f96561ae634eb85dbacec838e66713a000b16300 Mon Sep 17 00:00:00 2001 From: Timothy Morton Date: Fri, 4 Jan 2019 15:32:08 -0500 Subject: [PATCH 2/2] add classy library deletion to "make classy" rule --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 85377537b..cdfae2d60 100755 --- a/Makefile +++ b/Makefile @@ -187,6 +187,8 @@ ifdef OMPFLAG else grep -v "lgomp" python/setup.py > python/autosetup.py endif + # Removes previoiusly installed classy library if it's there. + rm -f $(shell python -c "import classy; print(classy.__file__)") cd python; export CC=$(CC); $(PYTHON) autosetup.py install || $(PYTHON) autosetup.py install --user rm python/autosetup.py