From 732ca50b13ac370086ee1a60429c719fa434733b Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 22 May 2018 10:07:16 -0400 Subject: [PATCH] Remove unnecessary parts of matplotlib --- matplotlib/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/matplotlib/Makefile b/matplotlib/Makefile index b1076fc4b..f0a21551e 100644 --- a/matplotlib/Makefile +++ b/matplotlib/Makefile @@ -83,7 +83,14 @@ $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py: $(ROOT)/.patched $(BUILD)/__init__.py: $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py [ -d $(ROOT)/build ] || mkdir $(ROOT)/build cp -r $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib $(ROOT)/build && \ - cd $(BUILD); find . -name "*.so" -type f -delete + ( \ + cd $(BUILD); \ + find . -name "*.so" -type f -delete; \ + find backends -type f ! -name "*_agg*" ! -name '__init__.py' -delete; \ + rm -rf backends/qt_editor; \ + rm -rf backends/web_backend; \ + rm -rf sphinxext; \ + ) $(ROOT)/.patched: $(HOSTDIR)/setup.py