Fix #45: Hardcode the font cache

This commit is contained in:
Michael Droettboom 2018-06-01 14:33:32 -04:00
parent bd4621ca12
commit 7d0f764906
3 changed files with 1112 additions and 0 deletions

View File

@ -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; \

1100
matplotlib/fontList.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- 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')