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