From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34E61CCA47A for ; Thu, 16 Jun 2022 04:48:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357797AbiFPEsa (ORCPT ); Thu, 16 Jun 2022 00:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350349AbiFPEsW (ORCPT ); Thu, 16 Jun 2022 00:48:22 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DDD1A381 for ; Wed, 15 Jun 2022 21:48:21 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id m11-20020a25710b000000b0065d4a4abca1so140179ybc.18 for ; Wed, 15 Jun 2022 21:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=aNvZPcZ6zsNSg6KtWndLDA+9lA/85jhiUeKYeiO2xYM=; b=DKTgrtAQmHIxOtJdvwlZ15/gTsavr6bwhVeccAenhBaxHngqGezpOa+Arc8Enjk6tf 9efTR1Jm15DQvjyfyOvGcbRGH25DVQxXqIWuqbEk5SOipxnHIKdAbafINYIp6Z5OvgGG rJrHrCPM0OugTUkTLlxEjtQMBby25NS4Gp/Zv6zRXJmvRE9CWv7oiqAh6XDlC947A2uD 91zn7qDt3mEoX8q3wDUzdb3sjQIf9TDDSH2SMYdMb72HLzPPl5FzQvSqPNklQRPg5nlm pfMMXZI9u7M8UgHI88VAs30pEtY+VRMbE3FUG8IKrd8m0S+GfDOI3OG9wDcoVdohxhDL as6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=aNvZPcZ6zsNSg6KtWndLDA+9lA/85jhiUeKYeiO2xYM=; b=LrgJC7kxXeoyDYTeXPNK97ceVLakAB8JZ8hq5w5sjVRJaTDtD8NnZr9IwTAv4WQtA7 1ZMB+Bpe1zdxmCAhVnV/b4zKTpjG+1qFWp1u2pA6myTtw363ygqzeL1RX+93swJQvLFa p+1/+de3bNR6zX20PsmQXLucCKg0/TPp8Wq5DYcGLYWIV3jZNOK1OLvhJvILV/Imu7Pk 4qxpeaAlLibs/QHAjMfoh5O5M/Kju1ScIO/KofRX40ByMvdfNPVNbu3AK0+lsxHo56tH vrJcyx5XMLZTzsdXJpdMWmANdyyWlIB6dY5UnuK0Kpgr16b7rr69UzGz3G2E/QePQvX/ egtg== X-Gm-Message-State: AJIora/7E1/pKs7nda2ICEjpU7BvUxU4rPm6MU47D0iKVmM352teXMzp z0zgUK+LTMgPCPVykEqjOoolxUMj40qn X-Google-Smtp-Source: AGRyM1sG9gJkT/zMUadD9j2INLWefD6MH/d4lDxZ9D4QOqogGaLkM7kTzzSnqre/ayzOIzVWWjd1ignQd/g/ X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:8a8e:cef:df61:163d]) (user=irogers job=sendgmr) by 2002:a25:358b:0:b0:668:a642:ccb3 with SMTP id c133-20020a25358b000000b00668a642ccb3mr117088yba.563.1655354900567; Wed, 15 Jun 2022 21:48:20 -0700 (PDT) Date: Wed, 15 Jun 2022 21:48:03 -0700 In-Reply-To: <20220616044806.47770-1-irogers@google.com> Message-Id: <20220616044806.47770-2-irogers@google.com> Mime-Version: 1.0 References: <20220616044806.47770-1-irogers@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH v5 1/4] perf python: Prefer python3 From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Kan Liang , Andi Kleen , Zhengjun Xing , Felix Fietkau , Qi Liu , Like Xu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Nick Forrington , Kajol Jain , James Clark , Andrew Kilroy , "Paul A . Clarke" , Will Deacon , Mathieu Poirier , ananth.narayan@amd.com, ravi.bangoria@amd.com, santosh.shukla@amd.com, sandipan.das@amd.com, Caleb Biggers , Perry Taylor , Kshipra Bopardikar Cc: Stephane Eranian , Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PYTHON_AUTO code orders the preference for the PYTHON command to be python3, python and then python2. python3 makes a more logical preference as python2 is no longer supported: https://www.python.org/doc/sunset-python-2/ Reorder the priority of the PYTHON command to be python2, python and then python3. Reported-by: John Garry Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 73e0762092fe..16c1a87444b8 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -241,15 +241,15 @@ endif # Try different combinations to accommodate systems that only have # python[2][3]-config in weird combinations in the following order of # priority from lowest to highest: -# * python3-config -# * python-config # * python2-config as per pep-0394. +# * python-config +# * python3-config # * $(PYTHON)-config (If PYTHON is user supplied but PYTHON_CONFIG isn't) # PYTHON_AUTO := python-config -PYTHON_AUTO := $(if $(call get-executable,python3-config),python3-config,$(PYTHON_AUTO)) -PYTHON_AUTO := $(if $(call get-executable,python-config),python-config,$(PYTHON_AUTO)) PYTHON_AUTO := $(if $(call get-executable,python2-config),python2-config,$(PYTHON_AUTO)) +PYTHON_AUTO := $(if $(call get-executable,python-config),python-config,$(PYTHON_AUTO)) +PYTHON_AUTO := $(if $(call get-executable,python3-config),python3-config,$(PYTHON_AUTO)) # If PYTHON is defined but PYTHON_CONFIG isn't, then take $(PYTHON)-config as if it was the user # supplied value for PYTHON_CONFIG. Because it's "user supplied", error out if it doesn't exist. -- 2.36.1.476.g0c4daa206d-goog