Differences between revisions 1 and 2
Revision 1 as of 2009-07-04 00:00:47
Size: 728
Editor: bsutton
Comment:
Revision 2 as of 2022-04-05 00:45:54
Size: 0
Editor: mkoeppe
Comment: outdated
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== How to update an existing Sage package (spkg) ==

 * Open a cmd.exe and cd to the root folder of sage.

To extract the package type: -

 * sage-python.bat sage-control.py -x mypackage.1.0.0

This will extract the folder structure to "<SAGE_ROOT>\spkg\build\mypackage.1.0.0". Make any changes you need. If you would like to test your changes you should copy this folder to something like "<SAGE_ROOT>\spkg\build\mypackage.1.0.0-test". Then you can build it using: -

 * sage-python.bat sage-control.py -b mypackage.1.0.0-test

Once you are happy with your changes you can create a new spkg file (will overwrite existing one) using the following command: -

 * sage-python.bat sage-control.py -c mypackage.1.0.0