Python packages using the meson-python build system are easily tripped up by package config files from unrelated/incompatible Pythons that are installed in a user's PKG_CONFIG_PATH.
meson-python should override meson's heuristics in https://github.com/mesonbuild/meson/blob/c6cbfbbf68798d00cefdef090cff6696fdd5c20d/mesonbuild/dependencies/python.py#L467C7-L467C32 for more robust operation.
Example of typical symptoms:
Python packages using the meson-python build system are easily tripped up by package config files from unrelated/incompatible Pythons that are installed in a user's
PKG_CONFIG_PATH.meson-python should override meson's heuristics in https://github.com/mesonbuild/meson/blob/c6cbfbbf68798d00cefdef090cff6696fdd5c20d/mesonbuild/dependencies/python.py#L467C7-L467C32 for more robust operation.
Example of typical symptoms: