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