On Thursday, September 11, 2025 at 10:02:48 AM UTC+8 François Bissey wrote:

These days, I set it at build time in the file that becomes: sage/config.py 
which defines all those things that are different in gentoo compared to 
some other environments.


Hopefully, we can improve the meson setup a bit more so that you don't have 
to overwrite any of those files in the near future.
 

You mention several SAGE_* variable, I have fought for several years so 
that SAGE_ROOT would never be used at runtime and only be a build time 
thing, I will not miss it. I also worked and got that SAGE_SRC would just 
be the sage python module path at runtime by default 
(prefix/lib/python-3.xx/site-packages/sage/) - it was mostly important for 
doctesting.
I will not miss it either.


I know, and I very much appreciate your efforts! I hope we can go a step 
further and even remove those variables completely, instead of relying on 
conventions such as "never be used at runtime". Should also made it easier 
to spot those last survivors where SAGE_ROOT is needed at runtime, such 
as 
https://github.com/sagemath/sage/blob/85c8f1e8a2663e5b89273ccd534ad69440928c60/src/sage/misc/copying.py#L6.
 

By the way how do you run tests in the meson setup?


Hopefully, very soon `pytest`. For now `src/bin/sage-runtests`. 

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/4184d90c-842f-476d-9036-d7b122569329n%40googlegroups.com.

Reply via email to