This simplifies and fixes the configure-time detection of Python.
Merge request pipeline #82540 passed
Merge request pipeline passed for 72668104 6 months ago
Pipeline #82541 passed
Pipeline passed for 72668104 on master 6 months ago
merged