See pypa/pip#8649.
Basically, cpython_tags is using distutils.get_platform here. It should probably be using get_host_platform - as far as I can tell the only difference is for cross-compilation, and (even if we accept that distutils supports cross-compilation, which I'm not sure it does) when installing wheels, we want to use the host platform, not the target platform (as we're not even building, so "target" makes no sense).
See pypa/pip#8649.
Basically,
cpython_tagsis usingdistutils.get_platformhere. It should probably be usingget_host_platform- as far as I can tell the only difference is for cross-compilation, and (even if we accept that distutils supports cross-compilation, which I'm not sure it does) when installing wheels, we want to use the host platform, not the target platform (as we're not even building, so "target" makes no sense).