On Wed, Oct 1, 2025 at 2:06 PM Michael Orlitzky <[email protected]> wrote:
> On 2025-10-01 14:23:31, David Roe wrote: > > 2. Identify the backward incompatible changes in #39030 > > <https://github.com/sagemath/sage/pull/39030> (and elsewhere, such as > #39015 > > <https://github.com/sagemath/sage/pull/39015>). At some point, the > public > > interface to the sage script consisted of the output of sage -advanced, > > which I've copied below (from 10.7). > > For some context, since no one has explained WHY there's a new script > yet. The goal was to make sage usable as a normal python package: > installable via pip, capable of being depended upon by 3rd party > packages, usable on linux distributions, etc. -- independent of the > sage distribution. > > The bash script is not suitable in any of those cases. Bash itself is > not a dependency of the sage library, and you can't require it if you > want to run on (say) Windows. The bash script relies on variables like > SAGE_ROOT to find things, but those variables don't exist outside of > the sage distribution. Most imporantly, a huge number of options refer > to things that only make sense in the sage distribution: > a number of these things stopped making sense, or are broken, or there are better ways. > > * sage -b and everything related > No longer needed (yes, your changed Cython code is now being rebuilt on the fly, as if it's Python!) If in doubt, just run "make" > * sage -i and everything related > some of it is broken, and "make foobar42" replaces "sage -i foobar" (not sure how broken it is now) * sage --python, sage --maxima, sage --gap3(!), etc. > * sage --package, sage --optional, ... > > As such, we can't just install the bash script if the user does "pip > install sagemath". But, we still need a way to actually start sage > once it's installed! The new script reimplements the critical parts in > python, and is installed by sagelib itself, so that after you install > sage by one of those other methods, you can just type "sage" and it > will work. > > None of that precludes further improvements to the python script, > though, and it might be possible to revert to the bash script for the > sage distribution. > At the very least, the bash script should be updated to make sense, as I noticed above, and what's implemented in the python script should be called via it, so that not to create burden to maintain two things in parallel. Dima > > -- > 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/aN17lXWCI2TApk4W%40jumba. > -- 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/CAAWYfq0KE-pv7%3D%3D%3DQJvySwCm01X9CZnZg%3DH%2BCW2xgfotx7YLnQ%40mail.gmail.com.
