Thank you both for the suggestion, I went with Dima's suggestion by running `sage -b` once, and now it supports incremental building. I will try Nils' approach and see if I can figure it out - if I do, I will add it to the conda-forge installation documentations page :)

Best regards,
Gareth

On 24/01/2024 16:37, Dima Pasechnik wrote:

On 24 January 2024 15:58:56 GMT, Gareth Ma<grhk...@gmail.com>  wrote:
Hi all, my development Sage installation uses the conda instructions here
<https://doc.sagemath.org/html/en/installation/conda.html#using-conda-to-provide-all-dependencies-for-the-sage-library>.
There is a command below for how to recompile Cython files:

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

However, it seems that it recompiles *every* Cython file, even the ones I
haven't touched. This happens everytime, not just the first time I run the
command. Is that normal?
yes, this is normal if you use pip this way.
If you went for a more regular Sage installation where you can run make, then 
such rebuilds would have been much faster, as there is dependency tracking then.



Is it possible to only recompile files I have
changed?

I tried running cythonize -i a.pyx directly on the file. However, it seems
to break something and some libraries are not loaded correctly. For
example, I was editing sage/rings/finite_rings/element_pari_ffelt.pyx, and
after running the cythonize command Sage complains that the ConwayDatabase
is missing.

(I hope I am not posting in the wrong mailing group)


--
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 on the web visit 
https://groups.google.com/d/msgid/sage-devel/e04d411b-c1de-44d9-8e98-c95c187c4916%40gmail.com.

Reply via email to