diff --git a/Makefile b/Makefile index b85b59932..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 @@ -195,3 +197,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__)")