From patchwork Tue Aug 2 17:33:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1663094 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Ly2Cj0y2Dz9sB4 for ; Wed, 3 Aug 2022 03:33:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A0A2981323; Tue, 2 Aug 2022 17:33:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A0A2981323 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rgvUWSsc9JMd; Tue, 2 Aug 2022 17:33:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id B4E88812EA; Tue, 2 Aug 2022 17:33:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org B4E88812EA X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 76D471BF5DD for ; Tue, 2 Aug 2022 17:33:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 51E5A812EA for ; Tue, 2 Aug 2022 17:33:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 51E5A812EA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5znUn4D-Qq_L for ; Tue, 2 Aug 2022 17:33:46 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 74E64812D2 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by smtp1.osuosl.org (Postfix) with ESMTPS id 74E64812D2 for ; Tue, 2 Aug 2022 17:33:46 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id j1so10369830wrw.1 for ; Tue, 02 Aug 2022 10:33:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SRsFR8ZCv4LJB3/G9BPeFPVIXnFsifAZFvJ19W1IVWU=; b=mE0fCXCZMS0TAiy+0zM7UUCNqB2Lm5FAtoALlm25oVOWPMfHwJeQHYLdWYdOew4mvc ct54JwIkPrG4X3T6KoRqkBKD5qW6LY65UBuGuKVe71se8lxD5ddUcsgS10KZtaa2rXHr ktEqnq3L42GAiso36M+rVe/9ihSmuFyaqn0+GknhelRHHcUtxN65XtqorD6HvjC3RGyQ mPcZaECC0SzB4rL7v5ew0aCwNHlRLGvUhJMeufN612iFieUYkZjgYYfpC5Us7aDKb3xV g+LQSEZMlaUqmgov+5pjxGEJEuQTBcjEsqIkKYheCw6bPRJo9CZ9qopcLPgnzaVZNV1i U8kg== X-Gm-Message-State: ACgBeo248nDXlLmLmMVH7VcJ/TYrfyhPqWy7v8Ph9kc80JgUjNTbtuv/ /aGF72aD9/cDtmS/jZBp5XRGk/YMiU8slg== X-Google-Smtp-Source: AA6agR7rMbZZrGxt7XcdFlWKMX6BtdBNBgEmtjqT73Mxt7NBU8yvP0sW6JXc0cu24GsDPQqW5dUovA== X-Received: by 2002:a5d:4f81:0:b0:21e:2cd7:25df with SMTP id d1-20020a5d4f81000000b0021e2cd725dfmr14225773wru.439.1659461624460; Tue, 02 Aug 2022 10:33:44 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id ay23-20020a05600c1e1700b003a4e5f85087sm3594215wmb.38.2022.08.02.10.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 10:33:43 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 2 Aug 2022 19:33:29 +0200 Message-Id: <20220802173330.15176-1-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SRsFR8ZCv4LJB3/G9BPeFPVIXnFsifAZFvJ19W1IVWU=; b=qEpRHQLDAfWHr3N/learVNe/JvBmffbOxoSZh8DsDWlJ5t5CFGqCPTYgP7QGqcnGBZ Gu44hfjLozcriE74A0NFMPeZxfFVlj2c8rBPkbx5N/f8a0ELwURtbaSIqcjlOipaoQQK Bm/5hVA0x5JDUm2ic9M7fxt5T8ABmHi4MVSoFYEXqICrLYJr23iqlMh4GpRnOuQnRpy1 z4PVO6+5eqWuohC3i4fmgjpCg0dIk4uaMgiTLgUG0sIUyNQ76lZnCsTlcJcH7sPHQoMG R0cmEI8YiNpyU2v9LUaa8PBxL2IxUTM41Dg1v5a8wM9/5odoBIP4lGoFjnotMxdMGb36 z+uQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=qEpRHQLD Subject: [Buildroot] [PATCH 1/2] package/python-scipy: fix io runtime dependency X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" We need python built with the --zlib feature, for the io module to import properly and be usable Signed-off-by: Guillaume W. Bres --- I did not provide the correct BR flag here. Let's test this module anyway with the runtime test (see the following commit). It turns out the scipy.io module is the only one that does not work right away --- package/python-scipy/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/python-scipy/Config.in b/package/python-scipy/Config.in index 0fa6c9e311..229b5997ad 100644 --- a/package/python-scipy/Config.in +++ b/package/python-scipy/Config.in @@ -6,7 +6,7 @@ config BR2_PACKAGE_PYTHON_SCIPY depends on BR2_TOOLCHAIN_HAS_FORTRAN # lapack depends on BR2_INSTALL_LIBSTDCPP select BR2_PACKAGE_LAPACK - select BR2_PACKAGE_ZLIB # runtime scipy::io + select BR2_PACKAGE_PYTHON3_ZLIB # runtime scipy::io select BR2_PACKAGE_PYTHON_NUMPY # runtime select BR2_PACKAGE_PYTHON_PYBIND help From patchwork Tue Aug 2 17:33:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1663095 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Ly2DP2rCrz9sCD for ; Wed, 3 Aug 2022 03:34:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7C0DF40943; Tue, 2 Aug 2022 17:34:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7C0DF40943 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vLJPr33ibC5Q; Tue, 2 Aug 2022 17:34:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 56E4E40942; Tue, 2 Aug 2022 17:34:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 56E4E40942 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C89E11BF5DD for ; Tue, 2 Aug 2022 17:34:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A3CE881322 for ; Tue, 2 Aug 2022 17:34:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A3CE881322 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qf7kmphqRxi0 for ; Tue, 2 Aug 2022 17:34:23 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 014D0812EA Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by smtp1.osuosl.org (Postfix) with ESMTPS id 014D0812EA for ; Tue, 2 Aug 2022 17:34:22 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id r1-20020a05600c35c100b003a326685e7cso871651wmq.1 for ; Tue, 02 Aug 2022 10:34:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RQK0KOJ0AErPA7yCXTC7uPJ0j0ofayvu4vJmNB2yyX8=; b=6M2Ry2NSesPTvxRKARxGxFGImoMDDPd17Up/YwYY6rr+ySsQ2IavXjoA7Bs4XX9hlZ 0reknp5ZNIOdK8/NIe5yKcxO3mQF3j/IJBZ6J73hdZsVwPGwi6Z46xwGC4URyDiEDM3v gIrpHS8dIv47a69hIZs+gFbcxYnzFuuJNrQoXRu9yGekyK4iCFFfo3y+YtI7hXKtvq/4 2TQr6fYOl1hnYO7+OX+vY15HTlwkR2EoBlGy4i6ONWfNUXKdUtHjBMFumZfIvVFBEHUa 5tKBZgqM9VXxQClDjhjof5FqS5MxidXjBBxAF0fsbP5u6Y0BlR/ntdf+FwFDuBe9+21y L2zQ== X-Gm-Message-State: ACgBeo3MTLQim8Y4hVFWF6t+SQTNjPGXt33vmSzvOkNVAcYIXl0mxnBR fmD/awPge2rvid6bg3ND/QOgM87aSWloHA== X-Google-Smtp-Source: AA6agR6BQLCYmGDkAYsVwP9NKzkcmkz6/FMTfuGyoEaPOGaPAw3rAZCzgsa5iKnYYYyV+KqHBpoK1w== X-Received: by 2002:a05:600c:434b:b0:3a3:175a:a964 with SMTP id r11-20020a05600c434b00b003a3175aa964mr363543wme.2.1659461660905; Tue, 02 Aug 2022 10:34:20 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id ay23-20020a05600c1e1700b003a4e5f85087sm3594215wmb.38.2022.08.02.10.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 10:34:19 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 2 Aug 2022 19:33:30 +0200 Message-Id: <20220802173330.15176-2-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220802173330.15176-1-guillaume.bressaix@gmail.com> References: <20220802173330.15176-1-guillaume.bressaix@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RQK0KOJ0AErPA7yCXTC7uPJ0j0ofayvu4vJmNB2yyX8=; b=HqU5HnadNu5vWBd/5gg1n2HSJkCUSYUZSJ+U6GydRGFoNmuCFTQCJ8RlJBu0y5ystw u+2I5Lk1neuk3712RYEs8CjwjuEnmXuxbi95pRsSh31RiNUZ46aQQpGb8qGYNoeg51tl TwwKIekiXMC5FPL/QJc236S1La/ePEwbnXFwJJgdEc5g6oonLEU4q6Zew7CFb5+JAody 0klIo7O+zPMtI7Vjiom1JbJsWVWlM9EH8lAPezHHZ6A/EkdlbH+Alqzeo4MbbezzzxDF 7nnlG+umt+sSh6ixrvgP8Ii40LnFG9neKakbyW/dz+PnAwhOU0iORBkCK9nmjBlzFd98 0CmA== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=HqU5Hnad Subject: [Buildroot] [PATCH 2/2] support/testing: test_python_scipy X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Test io module, to demonstrate the runtime dependency is correctly matched Signed-off-by: Guillaume W. Bres --- support/testing/tests/package/sample_python_scipy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/support/testing/tests/package/sample_python_scipy.py b/support/testing/tests/package/sample_python_scipy.py index df0c7ce5fe..d36f2273e7 100644 --- a/support/testing/tests/package/sample_python_scipy.py +++ b/support/testing/tests/package/sample_python_scipy.py @@ -1,4 +1,5 @@ import numpy +import scipy.io import scipy.special import scipy.integrate @@ -10,3 +11,6 @@ assert(com == 15.0) t = scipy.integrate.trapezoid([5,8,10]) assert(t == 15.5) + +mdic = {"t": t, "label": "example"} +scipy.io.savemat("example.mat", mdic)