From patchwork Wed Sep 4 18:10:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 172952 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp271348ilq; Wed, 4 Sep 2019 11:13:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOdzEomayu2kapTv41p3k3tIlxumoKDEP53wF6bdq8on4I8Hm6FiC0+x6XwD0pgQpyxjvu X-Received: by 2002:a63:3fc9:: with SMTP id m192mr36791869pga.429.1567620628913; Wed, 04 Sep 2019 11:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567620628; cv=none; d=google.com; s=arc-20160816; b=YreYL/KAL4AleQCBM/o0Axls6Cver6+YVdPJ+2/gmnwNK2BOT9Txt9GE0QKHt5G6gr mhBvlpOEkAmHRYFkTAjlmHBGRp9dDei8Es4EgpfqAKS5ETidzkEwhiEfnU7Qv0pkOMns YJ9BDJzF76K742qVhvk+vHfkcDRdwawYOh1TJ97qUR2LW/e3B8gXRJkdeCtT32LKUxQN QjwYsSTpk6l+oO6g82LPVLRY/OhIPth1tw2bDIscQCW9Rj1b5RAf1lm1mmYmDMUkj0YT hEsbzwyFsiOaXWNw3eiM4IyTHakpj5RoDxG9Ih7Ltkex4XkyaEiS+/IiXg1W1T885Xny fjJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=4Uzd6H3hI5c+eq1GEoLnFAGHtey1MB2K1QhNoyFmLAY=; b=eWhdDtYFLESQMv/SSGnazMEI5krocvaEGNV1wmJSrcJaEfLJOFFWXaLwVT23vYyPpF ofJ6ty0pYs7NJNCP4n0oFeUb48Xyuc3xt5gDgBp0rXenmoWi9rqfO+0A8+9aZocCmSNJ 57yOrsWZolvpkxUg44JSfCXDiv264nOf3YopQLTOS6M80ficQVn5GN/rlaSryKg4mXMi KNd+qwES/52pI0SkTxcXLXCv9Jvkmky8VGiZn+s0PHZ8RZbdDhK+hqp2jcqvr9O6eBIg gkz3FNM1CAYMKWGyLSiu4JE8o6zDDvj/jZ86MdIDTjrPmkNgarYg8j2yK7PNEiZS1HsW ZHqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=mG2d16lB; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o1si17741495plk.67.2019.09.04.11.10.27; Wed, 04 Sep 2019 11:10:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=mG2d16lB; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id CF7BD7F217; Wed, 4 Sep 2019 18:10:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mail.openembedded.org (Postfix) with ESMTP id 9883A7D076 for ; Wed, 4 Sep 2019 18:10:23 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id 4so8106446pgm.12 for ; Wed, 04 Sep 2019 11:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9qR8JZz8nWU3oFttPqNafOFgVELBuYkgH5dxadE8lGE=; b=mG2d16lBho8YTnCWyutsamIXCtP0Ht+/QO81xkEdWbu3zVVm6jj1XM3I05DN7DZ5QJ EBrAFPg1PtDiFsmZWZjhEbZEriph6ZfbQKVZ1oOz0wpJadiNUzfY581W+DTIHevsGjvQ /A/P9NqT9DykAdYUg/uvfFQQ5XeOx4JdlfFScyzZWENXbKwNcjYfyasoNL6imlkJESi7 rcv0wBoeaMw8/arl0RbrLYuO6t9LB5y/AqMr4yM/FBBsqjK/zxib/TdwlEyKmVd7f65f 0gTprXxT9KOXaOJ5JVk1qt6puVmZbqs8EsX9YnTAF2m+MFP/2sepFYKEX/goef6T6EP3 649w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9qR8JZz8nWU3oFttPqNafOFgVELBuYkgH5dxadE8lGE=; b=F0xHPKx7TbI+MmJgmW8PrXgtLHX9wfoVrnP42cA++YjGxSOLeGrcwhhGeA8NCqzCHZ gYlsFwzF9vTkolzOO6SW4oJoiexUvelYcv2ceV+I1wSjS0z96qiWJ5vr4fp8ISt973PP 6phcbUF6rsHr5upDwLL8PlaXe2Y/VUeP3LipIE30s4xzhaQnK2s7amYPU/dTiKUzuyYS b4v+OYVDEZdPIpP7lL0ER3+rK8sFPrqFZb5OlZM+1o4NwOeH6q117w0gVsG5Lc9KlWwh eUzGvagSKwvquZveZd6acUzKjbVZaX0Gp/zSv1sM3bQQG29vQW2r+uInKFI+PAia2WmE 1ttw== X-Gm-Message-State: APjAAAX5RNi4PLkdYN0kIsDy0OYyq+/CEVnd2dshABsV03waCRZw1Hmc Xnr/zyDHC9uwb10UZvs2irmz8fxq4u0= X-Received: by 2002:a63:c304:: with SMTP id c4mr35719162pgd.126.1567620623876; Wed, 04 Sep 2019 11:10:23 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id i9sm18764688pgg.38.2019.09.04.11.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 11:10:23 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 4 Sep 2019 11:10:08 -0700 Message-Id: <20190904181009.8374-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] python3: Expose PYTHON_BINABI in global config metadata X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org packages can use find_package(PythonInterp REQUIRED) find_package(PythonLibs REQUIRED) while we control PYTHON pointing to native py3 the libs and include directories will then point to build host version, which can result in unexpected combination and if we are lucky we get errors if its quite different e.g. py2 libs/includes and py3 executable This variable can be then used to export PYTHON_LIBRARY and PYTHON_INCLUDE_DIR so that above find_packages can work correctly Signed-off-by: Khem Raj --- meta/conf/distro/include/tcmode-default.inc | 3 +++ meta/recipes-devtools/python/python3_3.7.4.bb | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc index 5c28386c4f..bcc5a14d4a 100644 --- a/meta/conf/distro/include/tcmode-default.inc +++ b/meta/conf/distro/include/tcmode-default.inc @@ -30,6 +30,9 @@ GOVERSION ?= "1.12%" # llvm version being used, so always bump it with llvm recipe version bump LLVMVERSION ?= "8.0.1" +# This should be bumped when python3 recipe's MIN_VER is bumped e.g. 3.7 -> 3.8 +PYTHON_BINABI = "3.7m" + PREFERRED_VERSION_gcc ?= "${GCCVERSION}" PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}" PREFERRED_VERSION_gcc-cross-initial-${TARGET_ARCH} ?= "${GCCVERSION}" diff --git a/meta/recipes-devtools/python/python3_3.7.4.bb b/meta/recipes-devtools/python/python3_3.7.4.bb index 80c9b2919e..b2014e2bcf 100644 --- a/meta/recipes-devtools/python/python3_3.7.4.bb +++ b/meta/recipes-devtools/python/python3_3.7.4.bb @@ -47,7 +47,6 @@ UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P\d+(\.\d+)+).tar" CVE_PRODUCT = "python" PYTHON_MAJMIN = "3.7" -PYTHON_BINABI = "${PYTHON_MAJMIN}m" S = "${WORKDIR}/Python-${PV}" From patchwork Wed Sep 4 18:10:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 172951 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp270831ilq; Wed, 4 Sep 2019 11:12:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlfjy2GmfDEfTd2SEz7AhghfnlFVEqbwIVu3C92UgxrPvQxkwk1O8DBgDJboej4V9c+BOv X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr40518152plr.74.1567620647786; Wed, 04 Sep 2019 11:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567620647; cv=none; d=google.com; s=arc-20160816; b=pJt3LGquyPpMrtTgHJYvFGm8ZPcFeIu/RwbpOG2i/3MgkvM9Jwe/0qmSPGXOT1VJjC BJoYTqb06G5BcFJiav5EiFJTvP1wmDJT272VY1SoNyH1FiI3uEyFt0uNC2VJ1SifgniN bgeuyoZMJnV43m528yNRbdkUIAcHaffxvdiJIf7l84l1O304FctzZj4rGxNGb08TrYq7 RDKN0ru6DlTqK3GHXUpC2D/zpNAhtLPiTx9n1vtaNENgy8OI1x07AbeWa+CKk66hEQqd s8ukBhyEYCBL9uK3OAtvpc0UQ2RxKySi27GX39QTFuWxWK1R0MbpwUi+/OQK4WWg70J7 bcPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=l1uFH0H+HZznn0qRQuLjqaiHfG5AKeb/zKagIJgRSC8=; b=DH3KOFP8lVl8o4sTNmrkdsQ2DnGiPfjfHWROxNCQuIUnOf34ZWmAtuklyc+3Jpsqln 3xzQEzJ9WEtvUKEeFHiJdA9npBIdGjpxKCHf/+GP3B9TGFNPEAO1pXY9pjSW4tCnQh94 wI58XBegOhbLbUUA9hGKqL/8VdMfaxxxia0T6tC30CJelTlousB4bcL38IBN0yasKOdI hfgrOVD3lXHfB19yTTvwzK9c4Hps6mDeShfCik9KbXmBGqFXNhmIl3VQ2L9jIxIc8spv Vxew/iWij2qXnCcOlbUjM6nIOInsiLGELEbsKIAJwWp9v2k6aBeWmlp/fFGqE33qHoz1 AUtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=vINHhAk6; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o14si18022595pgk.45.2019.09.04.11.10.46; Wed, 04 Sep 2019 11:10:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=vINHhAk6; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B143B7F25B; Wed, 4 Sep 2019 18:10:43 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mail.openembedded.org (Postfix) with ESMTP id E8DD27F22D for ; Wed, 4 Sep 2019 18:10:24 +0000 (UTC) Received: by mail-pf1-f171.google.com with SMTP id h195so7192883pfe.5 for ; Wed, 04 Sep 2019 11:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ocdpli9FrHsVpdhi0O6w8zl6unT0eJuML9+qGCFMfsU=; b=vINHhAk6x63GDsjU28kmsceprvc9vIDiuDR8/bjIzlcCUlkXXMjYFpS1hxeCOAlIu+ W4LZkfDXxlh4dJhUZcuo1ER65pcKvuYQBrm/4kSk7kOTzohp36UcJWt2NMbFT8F2iP0d 6eWAfGyY4ShwfWq3pomSXCG5z3GQOV04ZuOfLuCFgXYyAL1eJj150aasnR731+0bwUkJ aGeZYYw+T9gOyQWH0VZNWt+0Zx1+kwoXtUO1ZqL0w058e2yf4/FlNUQFkDd3BpfRnbEy 4HvdkMRKlbqvqloJf8/HwEGwVQOqitOqr7wltZt7O3Lq7k3Fvl7yznCjmCf8wevCJvfq efRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ocdpli9FrHsVpdhi0O6w8zl6unT0eJuML9+qGCFMfsU=; b=b7IomYVZWwIV2m+TA3scFnJ0Yvzb35/zZc8sNbHVBii8Kb982XcjShlLKrho+ZaUZH yJS9fnGxTgmt3o8DTDCKCYArjIsyJJpjOCUSPa9x7duGb1fT9up3BPqIdDUgB3AtBmks D2iqnpa/E8krqch/zPZKxdNSBtzDBr2teEUM3UMwDmkqmcTGAj/Opjmhy2PzZxenSQC4 RFK4OPuxkhLUNPfRS5kqhrAtFXOytF8EqPMc8pX8JLaMuzu+GeJzjKsSG2eolo26oHO6 REbv0K5GuuvDKAGGMAC9ADw9HvJJ42zI/g5JGGIG5PAYxr8EMTzLImnMWQ8cfgx25LRX yszQ== X-Gm-Message-State: APjAAAV0h+nqPNsmYcdUXQ7YmljEXhIfBq5GUKl8MC6AF3/CBSOPs8Kp 8NpPIJWNUvfB9zbZVmt50ZTunl9Dq14= X-Received: by 2002:a65:5342:: with SMTP id w2mr35842308pgr.261.1567620625634; Wed, 04 Sep 2019 11:10:25 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id i9sm18764688pgg.38.2019.09.04.11.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 11:10:24 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 4 Sep 2019 11:10:09 -0700 Message-Id: <20190904181009.8374-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904181009.8374-1-raj.khem@gmail.com> References: <20190904181009.8374-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] python3native: export PYTHON_LIBRARY and PYTHON_INCLUDE_DIR X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta/classes/python3native.bbclass | 3 +++ 1 file changed, 3 insertions(+) -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass index a3acaf61bb..b056378f69 100644 --- a/meta/classes/python3native.bbclass +++ b/meta/classes/python3native.bbclass @@ -9,6 +9,9 @@ DEPENDS_append = " python3-native " export STAGING_INCDIR export STAGING_LIBDIR +export PYTHON_LIBRARY="${STAGING_LIBDIR}/${PYTHON_BINABI}" +export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_BINABI}" + export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" # suppress host user's site-packages dirs.