Commit 7d0f7649 authored by Michael Droettboom's avatar Michael Droettboom

Fix #45: Hardcode the font cache

parent bd4621ca
......@@ -84,6 +84,7 @@ $(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 && \
cp $(ROOT)/fontList.json $(BUILD)
( \
cd $(BUILD); \
find . -name "*.so" -type f -delete; \
......
This diff is collapsed.
--- a/lib/matplotlib/font_manager.py 2018-06-01 14:26:50.000683915 -0400
+++ b/lib/matplotlib/font_manager.py 2018-06-01 14:27:16.803726101 -0400
@@ -1431,7 +1431,7 @@
else:
_fmcache = None
- cachedir = get_cachedir()
+ cachedir = os.path.dirname(__file__)
if cachedir is not None:
_fmcache = os.path.join(cachedir, 'fontList.json')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment