#15901: git-related doctest failures after moving sage installation
-------------------------------------+-------------------------------------
Reporter: dkrenn | Owner:
Type: defect | Status: positive_review
Priority: major | Milestone: sage-6.3
Component: misc | Resolution:
Keywords: doctest, git, | Merged in:
relocate | Reviewers: Peter Bruin
Authors: John Palmieri | Work issues:
Report Upstream: N/A | Commit:
Branch: u/jhpalmieri/git- | 782e3f6cc0a3852dbb83e26d1f1e41563821a8e5
relocate | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by leif):
Oh, just noticed:
{{{
#!sh
# Use a matplotlib config directory specific to Sage and specific to
# the version number of matplotlib, by setting the environment
# variable MPLCONFIGDIR. Note that we can't find the version number by
# importing matplotlib, because that could create matplotlib's standard
# config directory. So we use pkg_resources.
# "$SAGE_ROOT/local/bin/python" -c 'import pkg_resources;
pkg_resources.get_distribution("matplotlib").version' 2>/dev/null
"$SAGE_ROOT/local/bin/python" -c 'import pkg_resources;
pkg_resources.get_distribution("matplotlib").version'
if [ $? -eq 0 ]; then
echo "Setting MPLCONFIGDIR..."
MPLVERSION=`"$SAGE_ROOT/local/bin/python" -c 'import pkg_resources;
print pkg_resources.get_distribution("matplotlib").version'`
MPLCONFIGDIR="$DOT_SAGE/matplotlib-$MPLVERSION"
export MPLCONFIGDIR
# The directory is created when Sage starts (see sage.misc.misc).
else
echo "Setting MPLCONFIGDIR failed."
fi
# Add some directories to $LD_LIBRARY_PATH:
# * lib/openmpi is needed for openmpi.
# * lib/R/lib is needed for R in case the Sage install is moved.
# * lib32 and lib64 are needed for GCC, see #12405.
for d in lib/openmpi lib/R/lib lib32 lib64 lib; do
libdir="$SAGE_LOCAL/$d"
# Add only existing directories
if [ -d "$libdir" ]; then
[ -z "$LD_LIBRARY_PATH" ] || LD_LIBRARY_PATH=":${LD_LIBRARY_PATH}"
LD_LIBRARY_PATH="${libdir}$LD_LIBRARY_PATH"
fi
done
export LD_LIBRARY_PATH
}}}
>8-O
--
Ticket URL: <http://trac.sagemath.org/ticket/15901#comment:29>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.