-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matplotlib not using persistent font cache #178
Comments
Seems to be a platform specific issue. On Mac OS X (build with py2app) the users standard .matplotlib font cache is used or created/updated. Could be an issue on pyinstaller builds (Linux/Windows). Found this one: pyinstaller/pyinstaller#617 |
Looks like it's caused by how pyinstaller implements it: |
Relevant explanation:
|
@mreppen I suspect that fixing this will create other problems... |
The description of the behavior is not entirely clear to me, likely because I don't really know PyInstaller. It seems to me like the hook with that comment is responsible for setting up the new temporary mpl directory. Why couldn't it just copy/link the |
Expected Behavior
Use the default matplotlib font cache location, e.g.,
~/.cache/matplotlib
or artisan-specific directory like~/.cache/artisan
.Actual Behavior
Uses temporary location, and thus has to rebuild cache at every run (takes a long time on my system).
In my case, it is written to a subdirectory of
/tmp/
, which of course is different every time artisan is run.Specifications
Although I'm not using a supported distribution, the fact that the cache is stored in a temporary directory suggests the problem would occur also on other distributions.
The text was updated successfully, but these errors were encountered: