On Monday, March 29, 2021 at 12:08:36 PM UTC-7 jonatha...@googlemail.com 
wrote:

> I think in case of a pxd files things are a bit different. If someone uses 
> cysignals and memory_allocator in the same place, e.g.
>
> cdef MemoryAllocator mem = MemoryAllocator()
> sig_on()
> foo = mem.malloc(1000)
> sig_off()
>
> this would have to recompile the corresponding pxd file. So one could 
> check in that pxd file, whether cysignals is present or not. So I think 
> this could be set up, such that any project cimporting from 
> memory_allocator that requires cysignals has memory_allocator with 
> cysignals support. 
>
Right. If an importing project declares both memory_allocator and cysignals 
as "build-system requires" in pyproject.toml, then it can make use of both; 
so conditionalization memoryallocator.pxd based on cython_compile_time_env 
does make sense.

-- 
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/f619d534-43b8-4fc9-aaaf-91d2db52a4b6n%40googlegroups.com.

Reply via email to