I had not - thanks for the tip. I did try it and it doesn’t seem to help -
dependencies = [
'onnxruntime==1.17.1; extra != "gpu"',
]
But when I build that and install I get
Successfully installed onnxruntime-1.17.1 onnxruntime-gpu-1.17.1
I only saw this mentioned here but as a suggestion not as something that works: Optional dependency groups omitting package requirements - #32 by ntessore