Does the workaround mentioned by Dima above mitigates the issue? If it is really the doc build, then the cleanest solution would be to completely reimplement it to be just a single `sphinx` call - instead of having hundreds of targets for this that each depend on each other (each 'doc' has 4 - inventory, references, html, pdf; and you have to run first all inventory targets before you can do the references, and then afterwards the html).
On Sunday, October 19, 2025 at 6:55:26 AM UTC+8 [email protected] wrote: > A quick hack to basically cut these delays is to disable doc building - > comment out dealing with Sage docs. > As long as you don't need to rebuild the docs, you don't need that line > (which triggers re-scanning of doc targets) > > --- a/src/meson.build > +++ b/src/meson.build > @@ -280,4 +280,4 @@ src = meson.current_source_dir() > > # Submodules > subdir('sage') > -subdir('doc') > +# subdir('doc') > > > We can make this `subdir('doc') conditional on a parameter. but it's > unclear to me whether switching it on/off is seamless. > (if you had it off, and then turn it on, then it seems it's not > automatically starting to re-scan 'doc'). > But I am not a meson expert. > > HTH, > Dima > > > > > > > > On Sat, Oct 18, 2025 at 10:01 AM Travis Scrimshaw <[email protected]> > wrote: > >> This meson setup issue seems to happen every time I want to add an >> additional optional package. This is completely untenable waiting 10+ >> minutes every time as I want to install a number of them. >> >> Travis >> >> >> On Monday, October 13, 2025 at 10:29:19 PM UTC+9 [email protected] wrote: >> >>> The doc-build targets are only *created *but never invoked if you >>> install sagelib - they get only triggered as subtargets of the doc-html >>> target. >>> >>> But it's the declaration of the targets that takes so long here, >>> probably because the dependency tree is quite big (every html doc depends >>> on all inventory docs etc). Hopefully I find some time next week to >>> optimize a bit. >>> >>> -- >> 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/6c58f326-b740-4745-ad89-8dac359507f5n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/sage-devel/6c58f326-b740-4745-ad89-8dac359507f5n%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/ae6aa536-bc78-40cf-8bd2-6ec5b4bc4c04n%40googlegroups.com.
