From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id ED99077D67 for ; Wed, 6 Sep 2017 19:29:34 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id v86JTaUI022120 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 6 Sep 2017 12:29:36 -0700 (PDT) Received: from msp-lpggp1.wrs.com (172.25.34.110) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.361.1; Wed, 6 Sep 2017 12:29:35 -0700 From: Mark Hatle To: Date: Wed, 6 Sep 2017 14:23:03 -0500 Message-ID: <1504725809-12825-6-git-send-email-mark.hatle@windriver.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1504725809-12825-1-git-send-email-mark.hatle@windriver.com> References: <1504725809-12825-1-git-send-email-mark.hatle@windriver.com> MIME-Version: 1.0 Subject: [PATCH 05/31] openlmi-tools: Only build if the necessary python pieces are available X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2017 19:29:36 -0000 Content-Type: text/plain Since this isn't a python library it doesn't really belong to meta-python. But I couldn't figure out where else to move it to. Signed-off-by: Mark Hatle --- meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb b/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb index b23869d..13e67cb 100644 --- a/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb +++ b/meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb @@ -21,3 +21,8 @@ do_compile_prepend() { do_install_prepend() { cd cli } + +python() { + if 'meta-python' not in d.getVar('BBFILE_COLLECTIONS').split(): + raise bb.parse.SkipRecipe('Requires meta-python to be present.') +} -- 1.8.3.1