api
is only set if there’s access to actually ask for the information. Python 3.12+ does not expose mechanisms to ask where libraries will be searched for because distutils
is gone.
Please trace why the tag =
on line 13 is being used instead of 15. Python 3.10 on Linux should be falling into the else
, but maybe something is wonky?