#6235: set MPLCONFIGDIR environment variable when Sage starts up
----------------------+-----------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: minor | Milestone: sage-4.6
Component: misc | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------+-----------------------------------------------------
Comment(by jhpalmieri):
How about separate matplotlib config directories for each version of
matplotlib? We could read the version from the file
{{{SAGE_ROOT/local/lib/python/site-packages/matplotlib/__init__.py}}} --
search for {{{"__version__ = ..."}}}. If the file
{{{matplotlib/__init__.py}}} does not exist, then matplotlib hasn't been
installed yet, so we don't care what we set MPLCONFIGDIR to, but if it
exists, we can set MPLCONFIGDIR to something like
"$DOT_SAGE/matplotlib-$VER".
(We could instead look at the name of the file SAGE_ROOT/local/lib/python
/site-packages/matplotlib-VER-py2.6.egg-info, although if we upgrade,
there could be several of these files present, and this doesn't seem as
safe to me.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6235#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.