Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
7d0f7649
Commit
7d0f7649
authored
Jun 01, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #45: Hardcode the font cache
parent
bd4621ca
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1112 additions
and
0 deletions
+1112
-0
matplotlib/Makefile
matplotlib/Makefile
+1
-0
matplotlib/fontList.json
matplotlib/fontList.json
+1100
-0
matplotlib/patches/hardcoded_font_cache.patch
matplotlib/patches/hardcoded_font_cache.patch
+11
-0
No files found.
matplotlib/Makefile
View file @
7d0f7649
...
@@ -84,6 +84,7 @@ $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py: $(ROOT)/.patched
...
@@ -84,6 +84,7 @@ $(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py: $(ROOT)/.patched
$(BUILD)/__init__.py
:
$(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py
$(BUILD)/__init__.py
:
$(HOSTBUILD)/lib.$(PLATFORMSLUG)/matplotlib/__init__.py
[
-d
$(ROOT)
/build
]
||
mkdir
$(ROOT)
/build
[
-d
$(ROOT)
/build
]
||
mkdir
$(ROOT)
/build
cp
-r
$(HOSTBUILD)
/lib.
$(PLATFORMSLUG)
/matplotlib
$(ROOT)
/build
&&
\
cp
-r
$(HOSTBUILD)
/lib.
$(PLATFORMSLUG)
/matplotlib
$(ROOT)
/build
&&
\
cp
$(ROOT)
/fontList.json
$(BUILD)
(
\
(
\
cd
$(BUILD)
;
\
cd
$(BUILD)
;
\
find
.
-name
"*.so"
-type
f
-delete
;
\
find
.
-name
"*.so"
-type
f
-delete
;
\
...
...
matplotlib/fontList.json
0 → 100644
View file @
7d0f7649
This diff is collapsed.
Click to expand it.
matplotlib/patches/hardcoded_font_cache.patch
0 → 100644
View file @
7d0f7649
--- 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')
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment