sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.46k stars 482 forks source link

Meson: add sage cli #39015

Open tobiasdiez opened 2 days ago

tobiasdiez commented 2 days ago

Meson currently doesn't install any of the scripts in src/bin. This is because

Here, we reimplement a very small subset of the sage cli functionality in Python without any env hacks. At the moment only --version and the interactive sage shell are implemented.

What would be other command that make sense in the context of meson? We might also want to use the chance and reconsider the naming/layout of some of the commands.

:memo: Checklist

:hourglass: Dependencies

antonio-rojas commented 5 hours ago

I'd say sage -n to run the notebook directly and sage -c to run a single command should definitely be kept. I personally use sage -t a lot for running tests (I know it can be replaced with python -m sage.doctest, but the shortcut is quite handy)