-
Notifications
You must be signed in to change notification settings - Fork 217
SageMath Development on SageMathCloud
These are instructions on how to quickly (ie., in a few minutes) get started with Sage development on CoCalc.
-
Open the CoCalc project that you intend to use for development, or create a new project.
-
Send an email with THE LINK TO YOUR PROJECT (under Settings) to [email protected] and say that you are using this project for legit Sage development.
-
Wait for the reply before continuing. You MUST DO THIS SINCE DEFAULT PROJECTS DO NOT HAVE SUFFICIENT DISK SPACE OR NETWORK ACCESS. Building Sage from source takes up just under 4GB of disk space in CoCalc (it's so "small" because our disk is compressed and dedup'd).
-
Create an ssh key and upload the ssh key to the Sage trac server:
-
generate an ssh key using the command
ssh-keygen
(for more details, see Manually generating your ssh keys in the Sage Developer's Guide) -
upload your ssh key to the trac server following ONLY ONE of these two instructions:
-
-
Obtain the Sage source code and build Sage in the standard way from scratch; for more details, see this.
-
Add your trac account username and password:
git trac config --user username --pass 'password'
Note: You will have to do this once each time you do step 3 above.
-
Checkout a ticket, that is, switch to a new branch:
git trac checkout 18628
Note: Make sure to do step 4 first!
-
Recompile Sage:
make start
Note: this might take some time if it's an old ticket.
-
Do some development or reviewing....
- edit some files, then 'add' them, e.g., by running
git add .
- test changes, e.g., by running
./sage -br
- 'commit' changes, e.g.,
git commit -m "added 'super_conjugate' method to partition.py"
- push your changes:
git trac push
- edit some files, then 'add' them, e.g., by running
-
Go home:
git checkout develop
Note: this will bring you back to the development version of Sage without any of your modifications.
-
Return to step 6 with another ticket!
-
If you want to use the development version of Sage in your worksheets, then first run the following commands
mkdir -p ~/bin cd ~/bin ln -sf ~/sage-dev-images/sage-6.8.beta3/sage .
and then restart your worksheet server (in project settings). For details, see this entry in the FAQ.
-
For more information about the general Sage development process, see the Sage Developer's Guide).
-
For more information about the
git trac
command, see Collaborative Development with Git-Trac
This Wiki is for CoCalc.com.
A more structured documentation is the CoCalc User Manual.
For further questions, please contact us.