The CMakeLists.txt file for tag UHD-4.3 misses the fact that python2-devel may not have been installed on a Fedora system (in my case Fedora 37)
The solution is to install python2-devel like this:
sudo def install python2-devel
And that fixes the problem.