-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Make new spkg to install Jmol in SAGE_LOCAL/share #11503
Comments
Attachment: trac_11503_path_fix.patch.gz path fix for flask |
This comment has been minimized.
This comment has been minimized.
plot3d command line fix |
comment:3
Attachment: trac_11503_cmd_line_fix.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:6
spkg refactored to better meet Sage standards and remove dead code from spkg-install. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:8
Several comments:
so I can't check the state of the repo without installing a new version of hg. |
comment:9
Replying to @jhpalmieri:
|
This comment has been minimized.
This comment has been minimized.
comment:11
.p2 addresses the following: * reverted to mercurial version included in Sage (lost all the history in the process).
|
comment:12
I upgraded my version of mercurial so I can look at the repo, and I hope that the version included with Sage will be upgraded soon, too (see #10594). Oh, and now I see that I can open this repo with the old version. Anyway, there are some uncommitted files:
(So you should run "hg add" and then commit again.) The file spkg-install needs some work. In particular, any variable which refers to a path should be quoted, in case there are spaces in it. (Right now, we don't support having spaces in the path where Sage is, but when it's easy to allow, we should.) I think this should do it: diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -27,12 +27,12 @@ if [ $? -ne 0 ]; then
fi
# Check for sagenb location
-cd $SAGE_ROOT"/devel/sagenb/sagenb/data/jmol"
+cd "$SAGE_ROOT/devel/sagenb/sagenb/data/jmol"
if [ $? -ne 0 ]; then
echo "No old Jmol install in notebook. Skipping removal of Jmol from notebook."
else
echo "Removing Jmol files from the notebook data directory..."
- rm -r $SAGE_ROOT"/devel/sagenb/sagenb/data/jmol"
+ rm -r "$SAGE_ROOT/devel/sagenb/sagenb/data/jmol"
fi
TEMPDIR=$SPKDIR"/src"
@@ -47,15 +47,15 @@ if [ $? -ne 0 ]; then
echo "Directory "$SAGE_LOCAL"/share/jmol does not exist. Creating Directory..."
else
echo "Deleting all files from "$SAGE_LOCAL"/share/jmol..."
- rm -r $SAGE_LOCAL"/share/jmol"
+ rm -r "$SAGE_LOCAL/share/jmol"
echo "replacing jmol directory and contents..."
fi
-mkdir $SAGE_LOCAL"/share/jmol"
+mkdir "$SAGE_LOCAL/share/jmol"
TEMPDIR=$SPKDIR"/src/jmol"
cd "$TEMPDIR"
-cp -r * $SAGE_LOCAL"/share/jmol/"
+cp -r * "$SAGE_LOCAL/share/jmol/"
cd $SAGE_LOCAL"/bin"
if [ $? -ne 0 ]; then
@@ -64,12 +64,12 @@ if [ $? -ne 0 ]; then
else
echo "Copying jmol script to "$SAGE_LOCAL"/bin."
cd "$TEMPDIR"
- cp -f jmol $SAGE_LOCAL"/bin"
+ cp -f jmol "$SAGE_LOCAL/bin"
fi
echo "Installing applet web directory"
-mkdir $SAGE_LOCAL"/share/jmol/appletweb"
-cp Jmol.js $SAGE_LOCAL"/share/jmol/appletweb"
+mkdir "$SAGE_LOCAL/share/jmol/appletweb"
+cp Jmol.js "$SAGE_LOCAL/share/jmol/appletweb"
TEMPDIR=$SPKDIR"/patches/appletweb"
cd "$TEMPDIR"
@@ -77,7 +77,7 @@ if [ $? -ne 0 ]; then
echo "Error finding patches/appletweb directory. Exiting."
exit 1
fi
-cp -r * $SAGE_LOCAL"/share/jmol/appletweb"
+cp -r * "$SAGE_LOCAL/share/jmol/appletweb"
if [ $? -ne 0 ]; then
echo "Error installing PACKAGE_NAME." |
Changed reviewer from Dan Drake, Jason Grout to Dan Drake, Jason Grout, Punarbasu Purkayastha |
comment:59
Please put the latest version of the SPKG up on this ticket. It looks like #12299's instructions mention a newer version of the SPKG than is found here. |
comment:61
OK, fair enough. |
Merged: sage-5.2.beta0 |
Changed merged from sage-5.2.beta0 to none |
comment:63
Unmerging this from sage-5.2 due to the serious security issue at #13270. |
Merged: sage-5.2.beta0 |
In an effort to remove Jmol from the notebook in the Flask notebook it is being moved to SAGE_LOCAL/share. This is based on the logic that the notebook can run without Jmol, but Sage cannot run without either the notebook or Jmol even when using just the command line.
To achieve this relocation of Jmol:
install the spkg http://www.uwosh.edu/faculty_staff/gutow/jmol-12.2.21.p0.spkg
Apply attachment: trac-11503-jmol-spkg.2.patch to the sage root repository.
Apply attachment: trac-11503-jmol-commandline.patch to the sage repository (fixes jmol on the command line)
The necessary patch for sagenb has already been merged with the master sagenb branch: sagemath/sagenb#28
Depends on #11080
Depends on #11078
Depends on #11874
CC: @sagetrac-rado @kiwifb @strogdon
Component: notebook
Keywords: sd31 Jmol flask
Author: Jonathan Gutow
Reviewer: Dan Drake, Jason Grout, Punarbasu Purkayastha
Merged: sage-5.2.beta0
Issue created by migration from https://trac.sagemath.org/ticket/11503
The text was updated successfully, but these errors were encountered: