From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46448391E77; Wed, 30 Sep 2026 09:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790758907; cv=none; b=TyuubPHfib9nn7TSkQIIsRC+ygF1QHtIrfVwBN8zdaxUQt84I9evGU71RbbwhP8hmKYeC0ir7RDpUjtuuNeIsBPVrTycEUVvue0FdxrCWJ6/UZhn/0RcP2yiqKvPSdjhH2gF6TzrGAQqcn69/tQmf/zSrub4kgHOcBT/euSKgPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790758907; c=relaxed/simple; bh=VUM/mPHT9AX7V//ES0Dao/jyZol73nhZqLVrJCQjpFA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=W5OUPyWYIFmmF37kbTNtsm5hzVuqewQmFzbdqzJKClSFdMXh9xGQfDneWBpnYxtSqsdz6axFnzkseRs0EUUeWg5AHa+ex8FMrGpY9AmjcYDO7KCC951lGKm9VwnL6j2oHr0VEZiLA4+HbbEYgbMaWfbITyuaaQaQYT2XE30bPyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=meVcABmn; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="meVcABmn" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 462B6143D; Wed, 30 Sep 2026 02:01:41 -0700 (PDT) Received: from e132581.arm.com (unknown [10.2.196.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1F86D3F85F; Wed, 30 Sep 2026 02:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1790758904; bh=VUM/mPHT9AX7V//ES0Dao/jyZol73nhZqLVrJCQjpFA=; h=From:Subject:Date:To:Cc:From; b=meVcABmn/HEejAbWKfDvnld/eoijlQWcfWgwZj2u/1R2gto42xBwgcmTeQMrGarPw QL4KRaByoToJUmlsymqa8NstskGrCD3dFw2eIGIkA3lsmoVkFGby1X/8TJYEaoHXDM CG3e9Fm6vgs5MxPNt+o5GZL36Q0lchIe2Y8u4Cx0= From: Leo Yan Subject: [PATCH 0/3] perf build: Fix pylint build failures Date: Wed, 30 Sep 2026 10:01:11 +0100 Message-Id: <20260930-perf_fix_pylint_errors-v1-0-f72151d8b255@arm.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANfPvGoC/x2MXQqDMBAGryL7bCAaW3+uIiWo/VIXJIaNlIrk7 oY+DszMRRHCiDQUFwm+HHn3GaqyoGWd/AeK35mp1vVT90arAHHW8c+Gc2N/WIjsEpVZ4B6dmSs 0LeU4CLL0H4+vlG6xglbgaAAAAA== X-Change-ID: 20260930-perf_fix_pylint_errors-3cef583b1e47 To: Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Aishwarya TCV Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790758902; l=1165; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=VUM/mPHT9AX7V//ES0Dao/jyZol73nhZqLVrJCQjpFA=; b=OsJgqa6NY6CP8fJMuwNlPVvLuCMKNgd6WDqLXLk2EC7iWsJZ+J95yI8hpcr1fsQPkN8Nnitb6 s7b447XryOgCSonTfCAkzeLaPNhmUYCa7eUC2vG0qGCVwi0sr07gfKG X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Recent changes to perf's Python module, including enabling pylint by default, exposed build failures in our CI. For example: tests/shell/lib/perf_brstack_max.py:8:0: E0401: Unable to import 'perf' (import-error) This series ensures the perf Python extension is built before running pylint on its consumers and prepends the output Python directory to PYTHONPATH for out-of-tree builds. The series also mutes the optparse deprecation warning from older pylint versions. Python has reversed this deprecation, and newer pylint versions no longer report it. Signed-off-by: Leo Yan --- Leo Yan (3): perf build: Build the Python extension before pylint consumers perf build: Add the output Python directory to pylint's PYTHONPATH perf test: Suppress optparse deprecation warning with older pylint tools/perf/Makefile.perf | 8 +++++++- tools/perf/tests/shell/lib/attr.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) --- base-commit: 45d15e89a783a0a279b7a54f9018c230127380d7 change-id: 20260930-perf_fix_pylint_errors-3cef583b1e47 Best regards, -- Leo Yan