On Fri, Oct 17, 2025 at 4:01 PM Travis Scrimshaw <[email protected]> wrote:
> On October 17, 2025 9:39:39 AM CDT, Travis Scrimshaw <[email protected]> > wrote: > >I am a *very strong* -1 on this. These are extremely useful for when you > >have to rebuild cython files but don't need to go through the entire > "make" > >process. > > But you just don't need these any more - an equivalent of "sage -br" is > happening in the background, if needed, when you start Sage > (built in the default, "editable" mode) > > > I have verified that this does work, but it does so silently. It is also > very dangerous because it can easily look that Sage is taking a long time > to load because, say, you touched element.pxd trivially. > I don't see what's "dangerous" here. If you touched element.pxd then, by right, anything dependent on it must be rebuilt one way or another. Anyhow, you can (as documented, see src/doc/en/installation/source.rst - or the corresponding place in the html docs) do export MESONPY_EDITABLE_VERBOSE=1 Then when you start ./sage, you will see if any building is taking place. E.g. $ touch src/sage/libs/gap/element.pyx $ MESONPY_EDITABLE_VERBOSE=1 ./sage meson-python: building sagemath: /usr/bin/ninja [3/3] Linking target src/sage/libs/gap/ element.cpython-313-x86_64-linux-gnu.so ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 10.8.beta7, Release Date: 2025-10-16 │ │ Using Python 3.13.5. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: this is a prerelease version, and it may be unstable. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ sage: -------------------- as it progresses towards giving you Sage prompt, you'll see [1/3], [2/3], until it's done [3/3] (in this case, just 3 targets need a rebuild) > While Python files are very fast, this is not generally true for Cython > files, and I think it would be better to not have this by default and have > more control for when these compile. > In the above way you don't see a silent delay, you see what's going on. HTH Dima > > Best, > Travis > > -- > 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/751e1b84-f40a-4a39-bbde-5bf7c9ce818fn%40googlegroups.com > <https://groups.google.com/d/msgid/sage-devel/751e1b84-f40a-4a39-bbde-5bf7c9ce818fn%40googlegroups.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/CAAWYfq37ie1aessXcxP4W0Q%2BUJHuhX7YSE5jGdOTf63HaN5VCw%40mail.gmail.com.
