jsmath image fonts seem to be broken for Sage 4.3 (jsmath-image-
fonts-1.4.p2). Any idea what hapened?
Robert Marik
O.K. I found the source problem. There is bad path. The install script
has the following lines
if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/sagenb" ];
then
# user is using an old version of sage before the new notebook.
install_dir="$SAGE_ROOT/local/notebook/javascript/jsmath"
else
if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/sagenb/
data/jsmath" ]; then
# pre-#7196 new notebook
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb/data/javascript/jsmath"
else
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb/data/jsmath"
fi
fi
but the path for sage notebook changed from
/local/lib/python2.6/site-packages/sagenb/
to
/local/lib/python2.6/site-packages/sagenb-0.4.8-py2.6.egg/sagenb/
So perhaps the lines should look like
CASE 1:
if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/sagenb-0.4.8-
py2.6.egg/sagenb" ]; then
# user is using an old version of sage before the new notebook.
install_dir="$SAGE_ROOT/local/notebook/javascript/jsmath"
else
if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath" ]; then
# pre-#7196 new notebook
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/javascript/jsmath"
else
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath"
fi
fi
or simply (if we prefer the latest version)
CASE 2:
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath/"
Are there any suggestions from developers? Which case should be used
in new spkg? Case 1 or case 2?
Thanks
Robert
Do we allow Python (sub-)scripts in spkg-install? There's a trial spkg at