Bug#1061263: python3-spglib: fails with python3.12 (extension not built)

Drew Parsons dparsons at debian.org
Mon Jan 22 08:45:47 GMT 2024


On 2024-01-22 09:28, Andrius Merkys wrote:
> Hi Drew,
> 
> 
>> spglib should be configured to build for all available python 
>> versions.
>> In other libraries (e.g. fenics-basix) this is done by building the C
>> library separately from the the python module.
> 
> Thanks for a pointer, I will give fenics-basix a look. I did not
> manage to figure out a way to build spglib for all available Python
> versions.

Thinking about it, it could be tricky since spglib handles the python 
build from cmake with no setup.py.  The others run the two parts 
separately, cmake for the library and python setup for the python 
module.  Seems to be a flaw in cmake that it can't handle multiple 
pythons. Could possibly run cmake multiple times specifying the python 
version for each run.

>> Not sure, should this be severity: serious?
> 
> I think no. Supporting default Python only is not RC-critical, AFAIR.
> However, having spglib support all Python versions would fix other
> issues, like #1056457.

True.  For now I'll configure the client packages to run their tests 
only on default python then.

Drew



More information about the debian-science-maintainers mailing list