Thanks Marc, that helps a lot. Looking at the cli folder <https://github.com/sagemath/sage/blob/develop/src/sage/cli/__init__.py>, it only supports a small fraction of the command line options of the old bash script. Personally, I think this model is a lot better and more maintainable, but we should revert to bash script until the new argument parser supports all of the options that the old one did (options being dropped could be okay, but need to be justified). David
On Wed, Oct 1, 2025 at 2:37 PM Marc Culler <[email protected]> wrote: > Marc's answer about pyproject.toml still doesn't tell me where to find >> the Python code that's actually being run when you type sage. >> > > It runs the code in the file sage/venv/bin/sage, which is an entry point > generated automatically by the build system. That file contains the > following (where the actual shebang depends on the location of the sage > directory): > > #!/path/to/sage/local/bin/python3 > # -*- coding: utf-8 -*- > import re > import sys > from sage.cli import main > if __name__ == '__main__': > sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) > sys.exit(main()) > > - Marc > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/sage-devel/CALcZXREPnPAv9j0wXnm6UprB%2BCB2qXjBgDLn13i6GQnz0Q88PQ%40mail.gmail.com > <https://groups.google.com/d/msgid/sage-devel/CALcZXREPnPAv9j0wXnm6UprB%2BCB2qXjBgDLn13i6GQnz0Q88PQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sage-devel/CAChs6_nR1e21eRvNvfBmBW8JT701trdHwfJ1aQR41%3DmsgahDOw%40mail.gmail.com.
