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 45294C43334 for ; Sat, 18 Jun 2022 00:09:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382738AbiFRAJl (ORCPT ); Fri, 17 Jun 2022 20:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237639AbiFRAJd (ORCPT ); Fri, 17 Jun 2022 20:09:33 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90EF553B69 for ; Fri, 17 Jun 2022 17:09:29 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-313e5c642dcso51441967b3.3 for ; Fri, 17 Jun 2022 17:09:29 -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=tZQhfdUlxkVHdSQ9eygwMrKDUAUz+USW0dvBG64jjkyFXjjI5krOud3NLmWbHll+ZC 8CR8CA67oBPiEQo+waNiyeEXxDhtIsOETK+IcBfYhTjcdXLtSKLg1hQcoUDiTUBiVS60 G2rDERffyMU4ZRm1WRM8qdfoJtQWjb2eeV8mbErFbLcThNpAj2WK+i+qY1tS8CgXwqUw 245iikTNoxswXwUu0Bfs4eDSbiblBbCYeVahKn02+KvpzyP+CRprkqYisli3QBMKQ8rM 0gY2Haw8FR08d2HqQKo+PxBcxFyRUy6eddPubYEM2YEoFxmHkJXVM+DcdXihcoGjMJT2 80sw== 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=otR5UpnIuZURlWvPesUTtnuV5EvY/e7FUPBchFfAbyd7ZUmpdy15CSsuC4vTZIuV/1 RTF9yXyKXOp1tR3auNn1TpeI0PuOchpU8c1Huzq14FXQWPkFNwgMACM9IewOFDmJZjwF dE0oaNSxZXgpaX66lp1LISauBAxS7znexPXfkgAwja3BA9iqQZFKq3oPC15OTFtrRkZ5 Sp2mcjxxB7LDbI6Ggd0XD5HVQExm6TuxWo68/ewRqZQT82TuNlQFpczQ4gwkuvbL6ZDy 0Nbq+a26LAZnVlGdveOqULM2R1s5EFglbD8qm5k8yxhm5ciLyjlIhH+/VhkefNBAjqKL hjlw== X-Gm-Message-State: AJIora8ego9knh6GIwZ2Jcx1ZnR1phNhg5ZHJWNRflfO/vVAx3pqixXJ 1m43Q08o+GDsD1tMT+DuhIjcHZySJlBB X-Google-Smtp-Source: AGRyM1vqc15OOjIzeb0cg6mGMhHwQER/MhM6wLypfLF9/DTXTRXjJbM02U5t2NwIP19amW9V/u+EEHJTpgt+ X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:c89f:8969:c05d:79b6]) (user=irogers job=sendgmr) by 2002:a81:1a4b:0:b0:30c:5063:6e67 with SMTP id a72-20020a811a4b000000b0030c50636e67mr14664731ywa.158.1655510968724; Fri, 17 Jun 2022 17:09:28 -0700 (PDT) Date: Fri, 17 Jun 2022 17:09:04 -0700 In-Reply-To: <20220618000907.433350-1-irogers@google.com> Message-Id: <20220618000907.433350-2-irogers@google.com> Mime-Version: 1.0 References: <20220618000907.433350-1-irogers@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH v6 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