[PATCH openEuler-5.10-LTS 177/427] perf tools: Use Python devtools for version autodetection rather than runtime