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 E52FCC433EF for ; Wed, 29 Jun 2022 18:25:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbiF2SZo (ORCPT ); Wed, 29 Jun 2022 14:25:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbiF2SZm (ORCPT ); Wed, 29 Jun 2022 14:25:42 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38DC12654D for ; Wed, 29 Jun 2022 11:25:41 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id d132-20020a251d8a000000b0066c8dfb35f4so10888610ybd.12 for ; Wed, 29 Jun 2022 11:25:41 -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=61y9ZbhNM9aUa2DE015x/wXVvTB/o4yjLiEf1BV500Q=; b=baBCA/KhIRIKWbiWArtjOZMGeBZ9usu3nyVsCsSEi2tBwChryTPc6wxkxEBbf7sFdA tLTycH/nJxV3GMcVs/3gbn8tXTxSjk+UysCDnEBMCoqjWv9zdj9A/ZHB4IlvQsk1hp93 ZJaQvDLRU1hClGiTWCZ+JZCt3USJLdkVLI/UgkJDTdePct5USqWQUASkCjZKFIygeNwR z2T+MnN9QSCbbNk+spFX3YrxZrdy+X6nBjtf/iyLIMuj4FG1NTQVWORNKtduaKmzwoD7 Vy+atG6nUAeQ4pw+rX1VJ2nvDX2tBEjv3nQSKedp0TV5blNZ/b57zLpXZfEEdGRmQ2Bs UK9w== 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=61y9ZbhNM9aUa2DE015x/wXVvTB/o4yjLiEf1BV500Q=; b=jKCtoKjdZR4RQlyCh2JxL+yPHGzPynWQCsvQn7N2+EQGzUJg45jduPQTWN1bCzZO+e zTeyJErwnMPYzMb/0dI4WgZlESb86KA2B8wTFakS6YeW1rI4AfMEGh9jaXGGQ5r2M/A5 pYw8RaVxQOKrdIxhkEBxgolu9UNLB80tzUKI5SY3BavAoW2VQV/vrRy8i835mB2M/rkN 9VW7F6+mnTw08BIvhL2FsPzEimeZM4Ide7SyOK7o/lfDQLwpCrF4NMYJu2XFPtq9Sk3X /Jgwk3efROmAUY/4zMefwxV8mNnQAPmZ9RtKQCPIzbKD2blVIEWmS6ibOaYgmPrQZsVD 5bxg== X-Gm-Message-State: AJIora98vubMPGZQcBU3DYeGW5GJ/O8sS2uYX8WfU+Jw21IlMKFrl5gE 2ytbxzOn5AuUr4ZGknq4woPwc9G29qzT X-Google-Smtp-Source: AGRyM1sMndKMm44rfmDv3hwTaujKL2Kn2c493wD28xDQB+xXXXO4cmtQBUgqGchDWkmDzV9wBzZsuryjd6pr X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:f5a1:84fb:df7d:bd89]) (user=irogers job=sendgmr) by 2002:a25:50c7:0:b0:66c:95d2:c7e5 with SMTP id e190-20020a2550c7000000b0066c95d2c7e5mr4976142ybb.156.1656527140474; Wed, 29 Jun 2022 11:25:40 -0700 (PDT) Date: Wed, 29 Jun 2022 11:25:02 -0700 In-Reply-To: <20220629182505.406269-1-irogers@google.com> Message-Id: <20220629182505.406269-2-irogers@google.com> Mime-Version: 1.0 References: <20220629182505.406269-1-irogers@google.com> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog Subject: [PATCH v7 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 , Ian Rogers , Thomas Richter Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ian Rogers 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 Tested-by: Zhengjun Xing Tested-by: Thomas Richter Tested-by: John Garry --- 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.37.0.rc0.161.g10f37bed90-goog