mirror of https://github.com/pyodide/pyodide.git
Fix #45: Hardcode the font cache
This commit is contained in:
parent
bd4621ca12
commit
7d0f764906
|
@ -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; \
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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')
|
||||
|
Loading…
Reference in New Issue