Skip to content
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

Add jmol script in SAGE_ROOT/local/bin to hg and update #11496

Closed
gutow opened this issue Jun 16, 2011 · 14 comments
Closed

Add jmol script in SAGE_ROOT/local/bin to hg and update #11496

gutow opened this issue Jun 16, 2011 · 14 comments

Comments

@gutow
Copy link

gutow commented Jun 16, 2011

ONLY TO BE APPLIED IF YOU USE THE FLASK NOTEBOOK WITH THE NEW JMOL .SPKG (#11503). BOTH ARE REQUIRED.

With the change to the Flask notebook jmol is moving to the directory SAGE_LOCAL/share. This requires changes to the script that launches Jmol from the command line. Attached is a trac_11496_add_jmol_script.patch that adds the updated file to the hg repository for the local/bin directory. Don't know why it wasn't tracked in the past.

NOTE: If you get errors upon trying to apply this patch.  Simply replace the jmol script file with the contents of this patch.  There seem to be issues depending upon whether your installation is tracking this file or not.  It should be added to the Hg repository in the next release.

Related & Referring tickets:

CC: @mwhansen

Component: distribution

Keywords: command line jmol

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/11496

@gutow gutow added this to the sage-4.7.1 milestone Jun 16, 2011
@gutow
Copy link
Author

gutow commented Jun 16, 2011

Attachment: trac_11496_add_jmol_script.patch.gz

jmol script into hg repository to go with flask changes

@gutow

This comment has been minimized.

@gutow

This comment has been minimized.

@sagetrac-mariah
Copy link
Mannequin

sagetrac-mariah mannequin commented Jun 23, 2011

comment:3

When I tried to apply the patch to sage-4.7.1.alpha1 with hg_scripts.apply() it failed:

sage: hg_scripts.apply("/home/mariah/trac_11496_add_jmol_script.patch")
cd "/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin" && hg status
cd "/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin" && hg status
cd "/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin" && hg import   "/home/mariah/trac_11496_add_jmol_script.patch"
applying /home/mariah/trac_11496_add_jmol_script.patch
file jmol already exists
1 out of 1 hunks FAILED -- saving rejects to file jmol.rej
abort: patch failed to apply
sage:

Am I misunderstanding something?

@gutow
Copy link
Author

gutow commented Jun 23, 2011

comment:4

It appears that this change may already be in 4.7.1.alpha2...check manually that the script is there and matches what is in the patch.
Replying to @sagetrac-mariah:

When I tried to apply the patch to sage-4.7.1.alpha1 with hg_scripts.apply() it failed:

sage: hg_scripts.apply("/home/mariah/trac_11496_add_jmol_script.patch")
cd "/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin" && hg status
cd "/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin" && hg status
cd "/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin" && hg import   "/home/mariah/trac_11496_add_jmol_script.patch"
applying /home/mariah/trac_11496_add_jmol_script.patch
file jmol already exists
1 out of 1 hunks FAILED -- saving rejects to file jmol.rej
abort: patch failed to apply
sage:

Am I misunderstanding something?

@sagetrac-mariah
Copy link
Mannequin

sagetrac-mariah mannequin commented Jun 23, 2011

comment:5

They differ slightly (myjmol is the code in the patch):

eno% pwd
/home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin
eno% diff jmol ~/myjmol
3c3
< JMOL_HOME="`"$SAGE_LOCAL"/bin/sage-pypkg-location sagenb`""/sagenb/data/jmol"
---
> JMOL_HOME="$SAGE_LOCAL/share/jmol"
eno%

@gutow
Copy link
Author

gutow commented Jun 23, 2011

comment:6

I'm not quite sure how to respond.  As of 4.7 (the last official release) that script was not included in the mercurial repository.  Am I expected to modify my patches to keep up with test releases?  

That said, If you are setting up to use the Flask notebook and the new release of Jmol, you need to have the version in my patch not the one that points to sagenb/data/jmol as that directory no longer exists.

I suggest patching by hand.

Replying to @sagetrac-mariah:

They differ slightly (myjmol is the code in the patch): {{{ eno% pwd /home/mariah/sage/sage-4.7.1.alpha2-x86_64-Linux-core2-fc/local/bin eno% diff jmol ~/myjmol 3c3 < JMOL_HOME=""$SAGE_LOCAL"/bin/sage-pypkg-location sagenb""/sagenb/data/jmol" ---

JMOL_HOME="$SAGE_LOCAL/share/jmol"

eno% }}}

@gutow

This comment has been minimized.

@jhpalmieri
Copy link
Member

comment:9

I think that this isn't implemented correctly. First, the reason that the jmol script is not tracked in the scripts repo is that it is installed there by the sagenb spkg. So I think that the jmol script should be installed either by the sagenb spkg, or, even better, by the new jmol spkg from #11503. In fact, it looks like the script is already part of that spkg; you just have to write it to the correct place in the spkg-install file.

I may be confused, though, so if you have a different opinion, please let me know.

@gutow
Copy link
Author

gutow commented Jul 17, 2011

comment:10

I believe this is a good idea.  As soon as I've changed the .spkg (see #11503) this ticket should be closed.

Replying to @jhpalmieri:

I think that this isn't implemented correctly. First, the reason that the jmol script is not tracked in the scripts repo is that it is installed there by the sagenb spkg. So I think that the jmol script should be installed either by the sagenb spkg, or, even better, by the new jmol spkg from #11503. In fact, it looks like the script is already part of that spkg; you just have to write it to the correct place in the spkg-install file. I may be confused, though, so if you have a different opinion, please let me know.

@gutow
Copy link
Author

gutow commented Jul 18, 2011

comment:11

Should be closed because this is now subsumed by !#11503...

@jhpalmieri
Copy link
Member

comment:12

To the release manager: please close this as a duplicate of #11503.

@jdemeyer
Copy link

Reviewer: John Palmieri

@jdemeyer
Copy link

Changed author from gutow to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants