From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 01 Sep 2022 11:00:54 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oTg4C-003L5o-8T for lore@lore.pengutronix.de; Thu, 01 Sep 2022 11:00:54 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oTg4D-0005C7-1C; Thu, 01 Sep 2022 11:00:53 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTg36-0004ur-3V for ptxdist@pengutronix.de; Thu, 01 Sep 2022 10:59:44 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oTg33-003GXz-Gy for ptxdist@pengutronix.de; Thu, 01 Sep 2022 10:59:43 +0200 Received: from mfe by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oTg34-00Axqh-Jd for ptxdist@pengutronix.de; Thu, 01 Sep 2022 10:59:42 +0200 From: Marco Felsch To: ptxdist@pengutronix.de Date: Thu, 1 Sep 2022 10:59:40 +0200 Message-Id: <20220901085941.2597793-2-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220901085941.2597793-1-m.felsch@pengutronix.de> References: <20220901085941.2597793-1-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH 2/3] host-system-python3: add ply and pyyaml option X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Marco Felsch --- rules/host-system-python3.in | 6 ++++++ rules/host-system-python3.make | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in index 4be968f43..21d02e9e7 100644 --- a/rules/host-system-python3.in +++ b/rules/host-system-python3.in @@ -23,9 +23,15 @@ config HOST_SYSTEM_PYTHON3_SETUPTOOLS config HOST_SYSTEM_PYTHON3_SIX bool +config HOST_SYSTEM_PYTHON3_PLY + bool + config HOST_SYSTEM_PYTHON3_PYELFTOOLS bool +config HOST_SYSTEM_PYTHON3_PYYAML + bool + config HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY bool diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make index 02e9da141..217f1f56d 100644 --- a/rules/host-system-python3.make +++ b/rules/host-system-python3.make @@ -60,12 +60,24 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SIX ptxd_bailout "Python six module not found! \ Please install python3-six (debian)"; endif +ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PLY + @echo "Checking for Python ply ..." + @$(SYSTEMPYTHON3) -c 'import ply' 2>/dev/null || \ + ptxd_bailout "Python ply module not found! \ + Please install python3-ply (debian)"; +endif ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PYELFTOOLS @echo "Checking for Python Pyelftools ..." @$(SYSTEMPYTHON3) -c 'import elftools' 2>/dev/null || \ ptxd_bailout "Python elftools module not found! \ Please install python3-pyelftools (debian)"; endif +ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PYYAML + @echo "Checking for Python pyyaml ..." + @$(SYSTEMPYTHON3) -c 'import yaml' 2>/dev/null || \ + ptxd_bailout "Python pyyaml module not found! \ + Please install python3-yaml (debian)"; +endif ifdef PTXCONF_HOST_SYSTEM_PYTHON3_CRYPTOGRAPHY @echo "Checking for Python Cryptography ..." @$(SYSTEMPYTHON3) -c 'import cryptography' 2>/dev/null || \ -- 2.30.2