- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 688
 
Description
The sage script has a number of options that only make sense for sage-the-distribution, but do not make sense in downstream packaging of sage. Consequently, downstream packagers may install simple custom versions of the script that only provide a subset of the options.
Examples:
sage -sqlite-- as discussed in spkg-configure.m4 for sqlite #29002/sqlite3 CLI executable should be checked for at configure time #29092 -- because from a downstream packaging point of view, sage is not really responsible for providing sqlite, it's provided by justs another system packagesage -upgrade-- only makes sense with sage-the-distribution built from source
We should specify the subset of sage command line options that must be supported in any deployment/packaging of sage. This is so that user packages can work reliably.
Examples:
sage -c SAGECOMMAND-- obviouslysage -python -c COMMANDsage -t-- because it is used by user packages for testing sage sourcessage -sh..... ?
In this ticket, we actually split src/bin/sage into sagelib functionality and sage-the-distribution functionality. src/bin/sage delegates unknown options to build/bin/sage-site.
Ideally, distributions should be able to use an unmodified src/bin/sage.
Context:
- https://groups.google.com/d/msg/sage-packaging/BmkxIBdwbvE/fRMl2sjdBQAJ
 - Meta-ticket: Add Dockerfiles and CI scripts for integration testing of source and binary distributions and of downstream packages #29060: Meta-ticket: Add Dockerfiles and CI scripts for integration testing of source and binary distributions and of downstream packages
 
See also:
- src/doc/bootstrap: Generate src/doc/en/reference/repl/options.txt #29884: 
src/doc/bootstrap: Generatesrc/doc/en/reference/repl/options.rst 
Depends on #29878
Depends on #29289
Depends on #29884
CC: @kiwifb @isuruf @dimpase @embray @saraedum @antonio-rojas @slel @EmmanuelCharpentier @orlitzky @kcrisman
Component: scripts
Author: Matthias Koeppe, John Palmieri
Branch: 3953671
Reviewer: Matthias Koeppe, John Palmieri, François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/29111