Conda based development: rebuild instructions

41 views
Skip to first unread message

Nils Bruin

unread,
Apr 24, 2025, 5:35:36 PMApr 24
to sage-devel
I tried a conda-based install because I wanted to try some development on a machine with questionable rerequisites. Indeed, conda provided all prereqs very smoothly. On


the use of pip is advertised as superior to "make" and it has the following advice: After editing any Cython files, rebuild the Sage library using:

$ pip install --no-build-isolation --config-settings editable_mode=compat -v -v --editable src

with a tiny change to a file that didn't change any signatures, this triggered what looked to me like a full rebuild of the library. I don't think that's a reasonable alternative to make. I don't mind a pip-based work flow, but it needs better tools to figure out a minimal recompile.

Dima Pasechnik

unread,
Apr 24, 2025, 5:46:15 PMApr 24
to sage-...@googlegroups.com
A meson build should be able to do a minimal rebuild. It's hard to figure out what went wrong without a reasonable log.
(I can say that I do see very quick rebuilds on a non-conda setup using meson build of Sage)

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 sage-devel+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-devel/31aac6ad-8242-40dd-82d0-2e550b52815cn%40googlegroups.com.

Tobia...@gmx.de

unread,
Apr 24, 2025, 9:12:53 PMApr 24
to sage-devel
The docs for conda are outdated (there is already a PR in the pipeline fixing this). Please use meson following https://doc.sagemath.org/html/en/installation/meson.html
Reply all
Reply to author
Forward
0 new messages