[PATCH openEuler-5.10 73/76] perf python: Fix build when PYTHON_CONFIG is user supplied