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
Ease SageNB development by providing hg commands, and extracting packages to /devel #9920
Comments
Attachment: trac_9920-sagenb-package-extraction.patch.gz SageNB package. Extracts SageNB to $SAGE_ROOT/devel/ for ease of use. |
Attachment: trac_9920-sagelib-hg.patch.gz Sage main library. Adds hg_sagenb. |
Author: Tim Dumol |
comment:1
Patches attached. |
comment:2
Does this mean that I should be using spkg-dist to make the spkg, instead of sage -spkg? Also, does this set things up so that changes are reflected in the running notebook server? It seems that the spkg-dist just copies the hg repository there, but the notebook install is completely different. |
Attachment: trac_9920-sagenb-package-extraction.2.patch.gz Puts the "$SAGE_ROOT/devel/sagenb" in |
comment:3
Replying to @jasongrout:
Yes. That has been the case for a long time (c.f. SPKG.txt)
I neglected to add that. Thanks for the notification. This new patch should fix it. |
comment:4
Very nice! This seems to work well. |
Reviewer: Jason Grout |
comment:5
I'll start reviewing more notebook patches when this spkg is incorporated into sage! |
comment:6
The extcode, sage_scripts, and sage packages use Mercurial in their Does the new |
comment:7
Replying to @qed777:
Can we make a new ticket for that? In fact, I like this approach better (backup and copy), since it plays nicely with patch queues. The merge approach messes everything up if you forgot to pop all of your patches off.
No, I don't think it installs twice (you can check the files to make sure). The setup.py develop installs under $SAGE_ROOT/devel/ and changes the site-packages folder to refer to that location. |
comment:8
Replying to @jasongrout:
I agree with Jason.
Actually, it does, but doing so is needed for the docs to show (static docs). We can make another ticket for that. |
comment:10
I think both questions were answered, so I'm setting this back to positive review. It would be fantastic if it were included in the sagenb package for the next release. |
comment:12
By the way, another issue for another ticket: updating the developer's guide to include sagenb in the list of Mercurial repositories. |
comment:13
Sounds good. Thanks for the information. I'll add this to SageNB 0.8.4 at #10036. |
Merged: sagenb-0.8.4 |
comment:16
There's a problem with compiling from scratch, because Can someone add a new patch to fix this? |
Make |
comment:17
Attachment: trac_9920-devel_dir_fix.patch.gz I've added a patch that I'm testing now. |
comment:18
Replying to @qed777:
It works. |
comment:19
I think we'll need to open a new ticket for making this link
relative. Otherwise, Sage won't start after I move/rename the root directory. |
comment:20
And maybe also add |
Jason Grout commented on #9822 about the relative difficulty/inconvenience of developing and applying patches for SageNB as compared to Sage. This ticket should fix it.
CC: @jasongrout @kcrisman
Component: notebook
Author: Tim Dumol
Reviewer: Jason Grout
Merged: sagenb-0.8.4
Issue created by migration from https://trac.sagemath.org/ticket/9920
The text was updated successfully, but these errors were encountered: