From patchwork Tue Aug 16 14:39:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666886 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6Yhr6dzfz1yfq for ; Wed, 17 Aug 2022 00:40:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id C38DD4051A; Tue, 16 Aug 2022 14:40:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C38DD4051A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OonNuPTGTnAj; Tue, 16 Aug 2022 14:40:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id C35AB40374; Tue, 16 Aug 2022 14:40:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C35AB40374 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 6D5AF1BF4D6 for ; Tue, 16 Aug 2022 14:40:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5509182983 for ; Tue, 16 Aug 2022 14:40:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5509182983 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 w5Yx4UUp-Yaw for ; Tue, 16 Aug 2022 14:40:01 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8103181D4F Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8103181D4F for ; Tue, 16 Aug 2022 14:40:01 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id z16so12851374wrh.12 for ; Tue, 16 Aug 2022 07:40:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=oD14uQmpnxJ2Y2QtxdOoAc2LIaNB1/+IEiSR1IfUE3s=; b=Xzr1mg1lMSffO6Q4eGCwMO8evlqVSqznEGzA9o55NCAhIn1+zM3T6AHvgH8Pccd2lc TEzBNomDX6G+2T/nnogRql0Icg+WmW9JkPEPRaANfXvx81k7M7a85MHKu4wMLBWfgTGR Sn0Umsml9tfZjXj3tmwvJwA2hjbJNjYnOja49rONOaXb0vW74qwlndkab2PuK5nRsD6D f8LHrlhlwJBgMm3bQqpKWgDqpsZoH7KppIxck2cnC3PkUDpSKgqAUll8//lNbZvk6l2S 8fMoQY1S8M1+/34KAjOF6gBkGqiyrvyfdD2Qpzn8jbidc9xJvZ68fZdTakGDXdtw/TIx STfg== X-Gm-Message-State: ACgBeo1r25gA5vmeikwm2S4RwJ3Y33GP1rzvMUDZVsOO74qGEDJycKqG UBzpiZvTsr41BWNzKN8D5M2RIHJGUPA= X-Google-Smtp-Source: AA6agR4aBF9I9rxS5X+iLqlGxmEOJApDVvLHpJb3jW2JyUMPUXTxYkgLxnuEY1FBqEBaG1RaazpOBw== X-Received: by 2002:a05:6000:1883:b0:205:c0cb:33c6 with SMTP id a3-20020a056000188300b00205c0cb33c6mr12576084wri.39.1660660799398; Tue, 16 Aug 2022 07:39:59 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:39:58 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:37 +0200 Message-Id: <20220816143943.16142-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=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=oD14uQmpnxJ2Y2QtxdOoAc2LIaNB1/+IEiSR1IfUE3s=; b=gaybNCD2ZVajIrPo0APBZaqGjz32CB/o6v/QekFJawhLIbUxmFb4LvxCWTFDXsmJ3Y chC2uyUKUp0i8Rp9cp/mMbeBwEBa96OXuHRRSyjzXhGnjt9WYVr/gpbU47/gHyAQMPwv ptWjWljG5gJP9KTlQBENcnaWDyGo+4yyK6RFyuJCcHUjhuxmclj7HNsLW/iWYcN6HRwH FMGTA0oltQ9EuppRCQL3hxvhT8m8ODC0RHc1qORUcPLcKrxEWST/BXfTOSMBBK+tVm2K ttdcypU5cLHUjXDifdE4fmxrmBMUS8Ud8vZ4vPOc/ps0p4Z3GYwv8feOlz9JzG7eFQ8V bVtA== 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=gaybNCD2 Subject: [Buildroot] [PATCH v1 1/7] package/python-joblib: new package 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" package/python-scikitlearn requires python-joblib as runtime dependency Signed-off-by: Guillaume W. Bres --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-joblib/Config.in | 8 ++++++++ package/python-joblib/python-joblib.hash | 3 +++ package/python-joblib/python-joblib.mk | 20 ++++++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/python-joblib/Config.in create mode 100644 package/python-joblib/python-joblib.hash create mode 100644 package/python-joblib/python-joblib.mk diff --git a/DEVELOPERS b/DEVELOPERS index d2bd0d809a..2c4f9ed76e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1191,6 +1191,7 @@ F: package/mbw/ F: package/pixiewps/ F: package/python-beniget/ F: package/python-gast/ +F: package/python-joblib/ F: package/python-pybind/ F: package/python-pythran/ F: package/python-scipy/ diff --git a/package/Config.in b/package/Config.in index d1c098c48f..7f017c92e9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1086,6 +1086,7 @@ menu "External python modules" source "package/python-jedi/Config.in" source "package/python-jinja2/Config.in" source "package/python-jmespath/Config.in" + source "package/python-joblib/Config.in" source "package/python-json-schema-validator/Config.in" source "package/python-jsonmodels/Config.in" source "package/python-jsonschema/Config.in" diff --git a/package/python-joblib/Config.in b/package/python-joblib/Config.in new file mode 100644 index 0000000000..c6c5122c49 --- /dev/null +++ b/package/python-joblib/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_JOBLIB + bool "python-joblib" + depends on BR2_PACKAGE_PYTHON3 + help + Joblib is a set of tools to provide lightweight + pipelining in Python. + + https://joblib.readthedocs.io/en/latest/ diff --git a/package/python-joblib/python-joblib.hash b/package/python-joblib/python-joblib.hash new file mode 100644 index 0000000000..5023ba872c --- /dev/null +++ b/package/python-joblib/python-joblib.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 4cda464ca712a4814849c9477d7551b696ce215dc05d79fc516460814ef48f4f python-joblib-1.1.0.tar.gz +sha256 42612911c1872c5e4b43f6ae0e8ee59467cd350332241cf72ce90640264fae6a LICENSE.txt diff --git a/package/python-joblib/python-joblib.mk b/package/python-joblib/python-joblib.mk new file mode 100644 index 0000000000..97bf9172f2 --- /dev/null +++ b/package/python-joblib/python-joblib.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# python-joblib +# +################################################################################ + +PYTHON_JOBLIB_VERSION = 1.1.0 +PYTHON_JOBLIB_SITE = $(call github,joblib,joblib,$(PYTHON_JOBLIB_VERSION)) +PYTHON_JOBLIB_LICENSE = BSD-3-Clause +PYTHON_JOBLIB_LICENSE_FILES = LICENSE.txt +PYTHON_JOBLIB_SETUP_TYPE = setuptools + +# avoid running this test which requires +# chinese caracters to be supported +define PYTHON_JOBLIB_REMOVE_SPECIAL_ENCODING_TEST + rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/joblib/test/test_func_inspect_special_encoding.py +endef +PYTHON_JOBLIB_POST_INSTALL_TARGET_HOOKS += PYTHON_JOBLIB_REMOVE_SPECIAL_ENCODING_TEST + +$(eval $(python-package)) From patchwork Tue Aug 16 14:39:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666887 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6Yj56kCkz1yfq for ; Wed, 17 Aug 2022 00:40:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 547D661024; Tue, 16 Aug 2022 14:40:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 547D661024 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dHak9ii9raI9; Tue, 16 Aug 2022 14:40:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id A4AFC60E83; Tue, 16 Aug 2022 14:40:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A4AFC60E83 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 683B71BF4D6 for ; Tue, 16 Aug 2022 14:40:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 502F382983 for ; Tue, 16 Aug 2022 14:40:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 502F382983 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 yRsnqzfgTNDF for ; Tue, 16 Aug 2022 14:40:14 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3C97281D4F Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3C97281D4F for ; Tue, 16 Aug 2022 14:40:14 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id v3so12924801wrp.0 for ; Tue, 16 Aug 2022 07:40:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=VMbii+ULw+kUccgjiBNNd9HN7Vt6SoYi+KidyJYZYBw=; b=JXE7tffq/SYNALnrexhsxuDoWSGybq+aQGz15lmhYwitRxauZtP6F6vmwoZuWwMJjt 6mI2FwAhMGcnYZdvDAf8+lITWVOmo6o+lo3c8yz/PfjetTCsX/AYxx2gt3Tske4mjhfX P5hYwxWwSNByClYbNYzgUAecLAp6HbaLgrvuQd/zMKL2sEOM9ZmY84uFE7HEj8RTzDS3 53OtXpZRZ7hNX2H9p91UYJgDGycLy9S1mKApvJH1et7iVivp7kXlJ6mPRYijDvHkc7J8 zY+6y88kkYWdXFPBpB4N3gs52gYVJrfGIbV+EykH+rdOmvoNO6dwFCVEmfKb9xHSeqsz iELA== X-Gm-Message-State: ACgBeo3Yf8tEuxb7q4HmNJdn0otokBSyd2IhHORUlxBBJmyCu+ulMo9W q2exSifsTwS6CjB0kPt/tGSkhd0rWII= X-Google-Smtp-Source: AA6agR6ieFbYHYhPgfpFIUFQDHe8MgI/iduHsf7vOQt5qA0CFmj99wxRFPcW8DRBMooLmBkiDgR7/A== X-Received: by 2002:a05:6000:120a:b0:21f:dfb:ff12 with SMTP id e10-20020a056000120a00b0021f0dfbff12mr11575772wrx.215.1660660812212; Tue, 16 Aug 2022 07:40:12 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:40:11 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:38 +0200 Message-Id: <20220816143943.16142-2-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220816143943.16142-1-guillaume.bressaix@gmail.com> References: <20220816143943.16142-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=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=VMbii+ULw+kUccgjiBNNd9HN7Vt6SoYi+KidyJYZYBw=; b=PVYfFKCOIWCcQdtjJDJmtkTT6vjwjrmiCMmjFinQ1ibmyjKxd0MQnQaSC9anG6EMqG tBT2Ia2eF/sFVoHuFDuhUHCMysbtgKLqAR+ydgpdhXBIvn6+WlD4rMjmx8ibwaHGg5V6 pJHTHDhEdxXKQpSfvQHO8K/Mpe/FqbGJZzSvB6MO3XrCwqGD0OpUWwf8VeWVVrKjOlSc ZpunreQXz2y9lm5gMs/YTdlyHrzQmbiLtg0zo1lumRuszfm58Z9C9dN1qx8egTH1gwVt edo/Grbb0+yejUgEoXCqZuuUy9GDjCJ/gqqBFlI9eOv7PXCax81zRoTXYiqg883ewAsC ysjw== 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=PVYfFKCO Subject: [Buildroot] [PATCH v1 2/7] package/python-threadpoolctl: new package 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" package/python-scikitlearn needs python-threadpoolctl as a runtime dependency. Signed-off-by: Guillaume W. Bres --- python-threadpoolctl originally builds with "flit", whose build process merely consists in copying threadpoolctl.py to the /usr/lib python pool. As we have no knowledge of "flit", I simply used the buildroot infra to recreate this behavior. Let me know of any suggestion --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-threadpoolctl/Config.in | 10 +++++++++ .../python-threadpoolctl.hash | 3 +++ .../python-threadpoolctl.mk | 22 +++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/python-threadpoolctl/Config.in create mode 100644 package/python-threadpoolctl/python-threadpoolctl.hash create mode 100644 package/python-threadpoolctl/python-threadpoolctl.mk diff --git a/DEVELOPERS b/DEVELOPERS index 2c4f9ed76e..21a35cf9d1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1195,6 +1195,7 @@ F: package/python-joblib/ F: package/python-pybind/ F: package/python-pythran/ F: package/python-scipy/ +F: package/python-threadpoolctl/ F: package/reaver/ F: support/testing/tests/package/br2-external/python-pybind F: support/testing/tests/package/sample_python_pybind.py diff --git a/package/Config.in b/package/Config.in index 7f017c92e9..876d7309eb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1274,6 +1274,7 @@ menu "External python modules" source "package/python-termcolor/Config.in" source "package/python-terminaltables/Config.in" source "package/python-texttable/Config.in" + source "package/python-threadpoolctl/Config.in" source "package/python-thrift/Config.in" source "package/python-tinycss2/Config.in" source "package/python-tinyrpc/Config.in" diff --git a/package/python-threadpoolctl/Config.in b/package/python-threadpoolctl/Config.in new file mode 100644 index 0000000000..127de3bc39 --- /dev/null +++ b/package/python-threadpoolctl/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_THREADPOOLCTL + bool "python-threadpoolctl" + depends on BR2_PACKAGE_PYTHON3 + help + Python helpers to limit the number of threads + used in the threadpool-backed of common native + libraries used for scientific computing and + data science (e.g. BLAS and OpenMP). + + https://github.com/joblib/threadpoolctl diff --git a/package/python-threadpoolctl/python-threadpoolctl.hash b/package/python-threadpoolctl/python-threadpoolctl.hash new file mode 100644 index 0000000000..6b6fa72443 --- /dev/null +++ b/package/python-threadpoolctl/python-threadpoolctl.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 449b806f9147a3cf28ed7ec6389dbff9c450331d695873ab75dea79fe661f1e7 python-threadpoolctl-3.1.0.tar.gz +sha256 81ac619075248b06e53660b652d10e485f4675f5d0ae0f97ea22370da1f7e23b LICENSE diff --git a/package/python-threadpoolctl/python-threadpoolctl.mk b/package/python-threadpoolctl/python-threadpoolctl.mk new file mode 100644 index 0000000000..50f77b1b1f --- /dev/null +++ b/package/python-threadpoolctl/python-threadpoolctl.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# python-threadpoolctl +# +################################################################################ + +PYTHON_THREADPOOLCTL_VERSION = 3.1.0 +PYTHON_THREADPOOLCTL_SITE = $(call github,joblib,threadpoolctl,$(PYTHON_THREADPOOLCTL_VERSION),$(PYTHON_THREADPOOLCTL_VERSION).tar.gz) +PYTHON_THREADPOOLCTL_LICENSE = BSD-3-Clause +PYTHON_THREADPOOLCTL_LICENSE_FILES = LICENSE + +# threadpoolctl is originally built using 'flit' which +# simply symlinks $(@D)/threadpoolctl.py to site-packages +define PYTHON_THREADPOOLCTL_BUILD_CMDS +endef + +define PYTHON_THREADPOOLCTL_INSTALL_TARGET_CMDS + cp $(@D)/threadpoolctl.py \ + $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) +endef + +$(eval $(generic-package)) From patchwork Tue Aug 16 14:39:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666888 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6YjJ6Lblz1yfq for ; Wed, 17 Aug 2022 00:40:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D62FA82ACA; Tue, 16 Aug 2022 14:40:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D62FA82ACA 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 CUQvsccDL0d6; Tue, 16 Aug 2022 14:40:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 1762D82983; Tue, 16 Aug 2022 14:40:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1762D82983 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 56FE41BF4D6 for ; Tue, 16 Aug 2022 14:40:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 31CCF82983 for ; Tue, 16 Aug 2022 14:40:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 31CCF82983 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 YAVeSHp5hzgv for ; Tue, 16 Aug 2022 14:40:22 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C457081D4F Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by smtp1.osuosl.org (Postfix) with ESMTPS id C457081D4F for ; Tue, 16 Aug 2022 14:40:21 +0000 (UTC) Received: by mail-wm1-x32f.google.com with SMTP id bd26-20020a05600c1f1a00b003a5e82a6474so3831624wmb.4 for ; Tue, 16 Aug 2022 07:40:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=O5zyifV1nllqOYIFU/otJ9kQa8jEor/ouKh5CvcdaVw=; b=23r/yP6JQuKwmbOrDcTimgW89Vc1Yh8c4BDtjzUQMUqjoXYtNhBcd14zypfpsiAz0d wXsv1YZCPn/nNQ9d04Q4ZRZbIravcSzvBGq+PRlzT3wwOfy/jy/Wld4H7oc9KXdaw78+ tckTaZoSbhqusTAjRBtvDy7Dpno0Obb7Ttn0kIU4OZHU1W63piiS4g8LecVZ3lWttP6b 9sYktNBezgL5+NGj7Fs68agZnnOATALON90Yv+FR1ay6+7s48aujUTj/0j8yte2JrISo xvcYAZyfX6F5fZlgRMVn6njYOg1sjc59ucxPgIVZVe9EEtBNpSwS/ywYTyX1mphe46vf Nw1A== X-Gm-Message-State: ACgBeo2/86uLj6X32r9QLLqHk1f3tTIWmMbMGc0sjaZB959oDb3fGIaj 7b0HyxI9zff/sOqhx4PKOwjENfU3Blw= X-Google-Smtp-Source: AA6agR75NotZ2OsC9aEBDDj7W21HbYMsOZPdQht+qQ331EepHyRiyr8QyCCv69H6XwQto8K7S1zBew== X-Received: by 2002:a05:600c:1f11:b0:3a5:3df9:4859 with SMTP id bd17-20020a05600c1f1100b003a53df94859mr19176593wmb.175.1660660819816; Tue, 16 Aug 2022 07:40:19 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:40:19 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:39 +0200 Message-Id: <20220816143943.16142-3-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220816143943.16142-1-guillaume.bressaix@gmail.com> References: <20220816143943.16142-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=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=O5zyifV1nllqOYIFU/otJ9kQa8jEor/ouKh5CvcdaVw=; b=ZOeVcktrU8dIYFUT+oq0XBvn3e9Vm7xMP1KLolyGkh4t8cjTYiiW1pBj/eZGMS8t0n seWt3vxjivKEN+uzHrl/ytI94MX+ms/ulKsPfrZhKlCJHdIZUsV51Ozbmm3c+0Iwm8Vk hEqVVuSHSajjmhqxZb1zobpCVrGInVHJdF7mP7CmwPcOjKf4U2YdE4AyxjqvJYuHODYF hWfg8/W6+hly9WuLbQTop0R57MaglJn0KUpllJoOD+2LT9ZlYjN5idMk/jhjGC+h5XXH RwJa+AlCDTQ+pnFv2JhrX3PGiNcceM8i4crbIyb0a3XbKNJOz2gehPwDO1zGW1byI2KM yIUg== 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=ZOeVcktr Subject: [Buildroot] [PATCH v1 3/7] package/lapack: host-python-scipy needs host-lapack 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" host-python-scipy is a build time dependency of python-scikitlearn Signed-off-by: Guillaume W. Bres --- package/lapack/lapack.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/lapack/lapack.mk b/package/lapack/lapack.mk index 3db2797202..dc7ce1cde0 100644 --- a/package/lapack/lapack.mk +++ b/package/lapack/lapack.mk @@ -28,3 +28,4 @@ LAPACK_CONF_OPTS += \ endif $(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Tue Aug 16 14:39:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666889 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6YjY1lPCz1yfq for ; Wed, 17 Aug 2022 00:40:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 792AD4051A; Tue, 16 Aug 2022 14:40:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 792AD4051A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LgjIuN6fNNP8; Tue, 16 Aug 2022 14:40:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 7BC7D403F9; Tue, 16 Aug 2022 14:40:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 7BC7D403F9 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 B5DD51BF4D6 for ; Tue, 16 Aug 2022 14:40:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9E5E682983 for ; Tue, 16 Aug 2022 14:40:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9E5E682983 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 Uk8Y1AlbwOnt for ; Tue, 16 Aug 2022 14:40:27 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EAF2681D4F 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 EAF2681D4F for ; Tue, 16 Aug 2022 14:40:26 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id bs25so12910444wrb.2 for ; Tue, 16 Aug 2022 07:40:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=6dASX9ehbUfaBORWhrV0/BlLF9SfyEu6ed3rMr6SocE=; b=F8sEXfa1mmJsonio+4k7R1cj1AXXVg7G6jc9ps2hZTPOmf2eeNv06w98+f4+brD6zo oB6TOVzsbwKLw5QGSnGVxODSYSlCzLYWCFgAoGkS9cYXGbABSqqjMh8GQs++NLmtrzgC 4R11f921kOFjRCEcuaLDhA0bPFi1bfC2zym6RD0nzAWw1dWxLqq/48ckoZ3h0tsaDuBz HV7mPmQQCc7o+swePjwZm0eR9SPfaiKPx7D2TMiKSr87zjzwlBXpW8rjt8yszSCMEknk hAY6CISUUxYBA848CeKeWUnwcbxbMkvY4zgaWnaO3g9X/07mQV9bzsNykODeQfYMx8e5 DGAw== X-Gm-Message-State: ACgBeo2dTQ3Xwc5TqvIXOS+XU9hXSgb78MZdlE0wa86HPRPB3p/ASGp8 jf1HnlUgdeGM0KT3x77gX1+AZuMgUoY= X-Google-Smtp-Source: AA6agR4D7Lg0NXCrA6MBLMv9NS3IDq198Wma1PV30h0jqqLNhTV9U/ctc9X02QVikqPJrRC1UYFa0w== X-Received: by 2002:a5d:6988:0:b0:21f:bbc:65f8 with SMTP id g8-20020a5d6988000000b0021f0bbc65f8mr12094854wru.537.1660660824881; Tue, 16 Aug 2022 07:40:24 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:40:24 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:40 +0200 Message-Id: <20220816143943.16142-4-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220816143943.16142-1-guillaume.bressaix@gmail.com> References: <20220816143943.16142-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=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=6dASX9ehbUfaBORWhrV0/BlLF9SfyEu6ed3rMr6SocE=; b=pbDqECEN6B/sS0/eTb4OcLVD9dNtYm+o2k37lH95ZUEK/pJqL7NZcHVi4u3KoPNw+M s94ja58zz8P7v+Unv0MI+72umVn7JKN5pRvq8PF287OyFUX4VA5Mv9+OdeurwSue2zzZ uD9WAvIObojLYRybtXj58dwzMpZPv8E4qPjtlM33bgYscy1vuK3HqfyrPopmT/5Pw37c oMEhKqN3XLeA1Pe4kqYvX99+UhYN//s7kFS0nG5fkqJYl5tFjKVoX+D9WPt217J7w7S6 zNqSyOCD8N+Z0RoLUTYbEYS6xqObyhg+F619TLrbtsvLBuI6sMZRgMq9F4K1v3p295AS VMcQ== 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=pbDqECEN Subject: [Buildroot] [PATCH v1 4/7] package/python-pybind: host-python-scipy needs host-python-pybind 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" host-python-scipy is a build time dependency of python-scikitlearn Signed-off-by: Guillaume W. Bres --- package/python-pybind/python-pybind.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk index c5bee3d0a7..24b3fc3f68 100644 --- a/package/python-pybind/python-pybind.mk +++ b/package/python-pybind/python-pybind.mk @@ -26,3 +26,4 @@ endef PYTHON_PYBIND_POST_INSTALL_STAGING_HOOKS += PYTHON_PYBIND_INSTALL_MODULE $(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Tue Aug 16 14:39:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666890 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6Yjr0CDKz1yfq for ; Wed, 17 Aug 2022 00:41:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E3C68402C5; Tue, 16 Aug 2022 14:41:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E3C68402C5 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 HuexoMS7Grdp; Tue, 16 Aug 2022 14:40:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id B4B8D40296; Tue, 16 Aug 2022 14:40:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B4B8D40296 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 830C31BF4D6 for ; Tue, 16 Aug 2022 14:40:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5DCCC82983 for ; Tue, 16 Aug 2022 14:40:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5DCCC82983 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 B1Rfq21zZLHs for ; Tue, 16 Aug 2022 14:40:34 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8BA7F82A8F Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8BA7F82A8F for ; Tue, 16 Aug 2022 14:40:34 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id l4so12854806wrm.13 for ; Tue, 16 Aug 2022 07:40:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=mc8Zil+MRY89JdczzyB35AkEv7M4ciwYJfOYTBZNF2o=; b=2QNZYdziI6A7uRhcq+A7WPnieXwn0G4y0+KYEuePGIWYNAxrbm2HH8E4qSqdPu0ydV HstkaeKFqxgeOdDZ7OsVeurMAVW4ZDIrvrdt4nIAIq3zVWU2MBBQCGbvft1dxRjEpTLY 6iOwDFy3Qf9d9/FTxfQSS/1ORDmJMNX+SfQBZVem3iVBg9K72mmMvd+DvRoRqAziVGSh QxIq6UyZQCeFgN2kKIqmx9Hw2pXm/Ly+xwxJuaV+fGp5v/D0ZYG2+df3y5QCEDj8XR38 iG+RKmOZ3F0LwOiJKMggpMm825iBZqIRdigOKl3KGjl/7DIQ9jBJZJzYAdy7/TWoSzvE kbpA== X-Gm-Message-State: ACgBeo1Yh+658ly0fLmZRYCL/d01TIfjDUL1tDvQZIg7ITqPcnZy70W/ G3Ae2E7u+BG6n92QNhK+2yNfRGpZvO4= X-Google-Smtp-Source: AA6agR6mVEctrJUqEsD+SXx7uH5l+i2t64cJ/x85bshMexlPX9g9eE5IpNtEWwpQQ3bTxtB5WABf/Q== X-Received: by 2002:a05:6000:50a:b0:225:210c:a7e4 with SMTP id a10-20020a056000050a00b00225210ca7e4mr140419wrf.704.1660660832627; Tue, 16 Aug 2022 07:40:32 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:40:32 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:41 +0200 Message-Id: <20220816143943.16142-5-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220816143943.16142-1-guillaume.bressaix@gmail.com> References: <20220816143943.16142-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=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=mc8Zil+MRY89JdczzyB35AkEv7M4ciwYJfOYTBZNF2o=; b=E9FAHbpRldr5k52KV7ebk7/dvd8SxGtSVc+t/8GghMW55ccYEnPrkj2Q3WtKCRMjVr 2n5tZrCfM9NlFnVtP320nCdTg5rSNUiRMDUtB4vqOB/goEu44/DaigVBEjI7axLqlOMN WQ2LbnlpOlYB0FS5vxNgsIe6lH2m8GLqpZH9T/CqRP0u8TWOTVtnD3UxlUbBEVGLXpo2 nMWJRz1VMy3Y/Th8UphNROoY+dKUIVWXJEJs7lXweSe8Hj32u738A9xpvevCK8Ti9RT+ jti8AV95TPPlLdp/CTepRYJY3RpoEZEflvCLwAshZS67Lv/wPjRpkMqKqBJg97bGyl2h KDdg== 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=E9FAHbpR Subject: [Buildroot] [PATCH v1 5/7] package/python-scipy: add host-package 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" host-python-scipy is a build time dependency of python-scikitlearn Signed-off-by: Guillaume W. Bres --- package/python-scipy/python-scipy.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package/python-scipy/python-scipy.mk b/package/python-scipy/python-scipy.mk index a8c23c6c88..d41cf2fd70 100644 --- a/package/python-scipy/python-scipy.mk +++ b/package/python-scipy/python-scipy.mk @@ -31,6 +31,12 @@ PYTHON_SCIPY_DEPENDENCIES += \ lapack \ python-numpy \ python-pybind +HOST_PYTHON_SCIPY_DEPENDENCIES += \ + host-python-numpy \ + host-python-pybind \ + host-python-pythran \ + host-lapack \ + zlib PYTHON_SCIPY_INSTALL_STAGING = YES PYTHON_SCIPY_SETUP_TYPE = setuptools @@ -55,4 +61,12 @@ define PYTHON_SCIPY_CONFIGURE_CMDS echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg endef +define HOST_PYTHON_SCIPY_CONFIGURE_CMDS + -rm -f $(@D)/site.cfg + echo "[DEFAULT]" >> $(@D)/site.cfg + echo "library_dirs = $(HOST_DIR)/usr/lib" >> $(@D)/site.cfg + echo "include_dirs = $(HOST_DIR)/usr/include" >> $(@D)/site.cfg +endef + $(eval $(python-package)) +$(eval $(host-python-package)) From patchwork Tue Aug 16 14:39:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666891 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6Yk52LZHz1yfq for ; Wed, 17 Aug 2022 00:41:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id BF4A640291; Tue, 16 Aug 2022 14:41:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org BF4A640291 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 RQ11e9-vjNoZ; Tue, 16 Aug 2022 14:41:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 58F6A402A0; Tue, 16 Aug 2022 14:41:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 58F6A402A0 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 B986E1BF4D6 for ; Tue, 16 Aug 2022 14:40:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A0551829BB for ; Tue, 16 Aug 2022 14:40:40 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A0551829BB 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 iF3houLFtOfm for ; Tue, 16 Aug 2022 14:40:39 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9047782983 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9047782983 for ; Tue, 16 Aug 2022 14:40:39 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id ba1so2317847wrb.5 for ; Tue, 16 Aug 2022 07:40:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=/oUEdpaY7MFA+SKGXiFo0xliKNTosaiEaoae6O+V8HU=; b=K0IPkiO7E1yiHv5cHip7mjSqRARpMy5glQ4sntLFyoZU+cALdeoXKa1Kwc6X0xA0eS FUtWm/0YHe2L1mne1g+vhI+YzS4/7PMDublQK8fAD/JKoz6sLWHvRY5xUuGBJcUQXHjl 0QzlNkPDjW39+aK1VA+rxNotGbnc5sJVcbxQkgO2LpDkLEfh8+sWkLS7fw9iVKPp73xu L+jBnS4dw3M6xuxj2Vu4+CsK+WE8XzMF3X/xcjgx2obowBqKFzTxa9PAkzNRkD7p2wKe TWXqpwO3+cEpdJeUVI9qVu/6dqrGhlC3G9ehdwJvGvaxztGZfwvmXLHPg9w3TvBTyyJj LflA== X-Gm-Message-State: ACgBeo2Rp1XzoBpK9rLwTUp5Iep3eXXuddMEt1meFRkS8vWMmV5t7Bko O7jzuydCGRZp993XEHUbcW/5TrHdoXU= X-Google-Smtp-Source: AA6agR4dv86STOJ7B+pqXNVVyEuW3LdotRzmA09SfXQ06w30rucL9B5riLBF+AulJ+ZfwmyU56wlSQ== X-Received: by 2002:a5d:6d85:0:b0:220:7084:35e9 with SMTP id l5-20020a5d6d85000000b00220708435e9mr12181317wrs.11.1660660837611; Tue, 16 Aug 2022 07:40:37 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:40:37 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:42 +0200 Message-Id: <20220816143943.16142-6-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220816143943.16142-1-guillaume.bressaix@gmail.com> References: <20220816143943.16142-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=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=/oUEdpaY7MFA+SKGXiFo0xliKNTosaiEaoae6O+V8HU=; b=c1W9cehZn2TcvHO7q/mnp+BPHJoI36TjCr6FV0BppQwatIghiNz0FT0pq2EC1fTCOH 4GaB53VuuMemob5cI/K+QbEVqOwEomss6eLtYHk/GdXiEzHbQGtmyGzUYFcHne6Y/Wol KLuZV+tTd7ErlDfyHIa0mdWu7u6funYVQU8jAvJMKbnH+zQjeHnDv2PqURzoaQP79B40 ho+KRkOp7sn44UKXlC6REqINlDp9qAiKf7G6L52rlBtgbwIJPxKltJNgtIYulQP3TVXr RKLvuvHou81cjd9rXLl3T+BXa0ym+/+dDoVGkiRwvWfhOryzj9OGEUzwarSaPJvpJjWK yPBQ== 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=c1W9cehZ Subject: [Buildroot] [PATCH v1 6/7] package/python-scikitlearn: new package 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Guillaume W. Bres --- python-scikitlearn needs scipy both as build time and runtime dependency --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-scikitlearn/Config.in | 24 +++++++++++++++++++ .../python-scikitlearn.hash | 4 ++++ .../python-scikitlearn/python-scikitlearn.mk | 21 ++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 package/python-scikitlearn/Config.in create mode 100644 package/python-scikitlearn/python-scikitlearn.hash create mode 100644 package/python-scikitlearn/python-scikitlearn.mk diff --git a/DEVELOPERS b/DEVELOPERS index 21a35cf9d1..049f9fe186 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1194,6 +1194,7 @@ F: package/python-gast/ F: package/python-joblib/ F: package/python-pybind/ F: package/python-pythran/ +F: package/python-scikitlearn/ F: package/python-scipy/ F: package/python-threadpoolctl/ F: package/reaver/ diff --git a/package/Config.in b/package/Config.in index 876d7309eb..a2ee4f73e5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1236,6 +1236,7 @@ menu "External python modules" source "package/python-scandir/Config.in" source "package/python-scapy/Config.in" source "package/python-schedule/Config.in" + source "package/python-scikitlearn/Config.in" source "package/python-scipy/Config.in" source "package/python-sdnotify/Config.in" source "package/python-secretstorage/Config.in" diff --git a/package/python-scikitlearn/Config.in b/package/python-scikitlearn/Config.in new file mode 100644 index 0000000000..1fabdf92fe --- /dev/null +++ b/package/python-scikitlearn/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_PYTHON_SCIKITLEARN + bool "python-scikitlearn" + depends on BR2_TOOLCHAIN_HAS_FORTRAN # python-scipy + depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS # python-scipy + depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS # python-numpy + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy + select BR2_PACKAGE_PYTHON_NUMPY + select BR2_PACKAGE_PYTHON_SCIPY # runtime + select BR2_PACKAGE_PYTHON_JOBLIB # runtime + select BR2_PACKAGE_PYTHON_THREADPOOLCTL # runtime + help + Scikit-Learn is a Python module for machine learning + built on top of Python-Scipy. + + https://scikit-learn.org/ + +comment "python-scikitlearn needs a toolchain with fortran" + depends on !BR2_TOOLCHAIN_HAS_FORTRAN + +comment "python-scikitlearn needs lib openblas" + depends on !BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS + +comment "python-scikitlearn needs python-numpy" + depends on !BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS diff --git a/package/python-scikitlearn/python-scikitlearn.hash b/package/python-scikitlearn/python-scikitlearn.hash new file mode 100644 index 0000000000..e8c712761a --- /dev/null +++ b/package/python-scikitlearn/python-scikitlearn.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 568e621b9e1479b9ab952a9241db5af2ba3ab4f69d44b8aba3dd7648825e8e5a python-scikitlearn-1.1.1.tar.gz +# License files, locally calculated +sha256 bc2e5553b31344779335ddadac8de6f9d12da6f4ce46e22a8e2820951a1d5458 COPYING diff --git a/package/python-scikitlearn/python-scikitlearn.mk b/package/python-scikitlearn/python-scikitlearn.mk new file mode 100644 index 0000000000..00cdcd9ac7 --- /dev/null +++ b/package/python-scikitlearn/python-scikitlearn.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# python-scikitlearn +# +################################################################################ + +PYTHON_SCIKITLEARN_VERSION = 1.1.1 +PYTHON_SCIKITLEARN_SITE = $(call github,scikit-learn,scikit-learn,$(PYTHON_SCIKITLEARN_VERSION)) +PYTHON_SCIKITLEARN_LICENSE = BSD-3-Clause +PYTHON_SCIKITLEARN_LICENSE_FILES = COPYING +PYTHON_SCIKITLEARN_SETUP_TYPE = setuptools +PYTHON_SCIKITLEARN_DEPENDENCIES = \ + host-python-cython \ + host-python-scipy \ + python-joblib \ + python-threadpoolctl + +# disable test execution when cross compiling +PYTHON_SCIKITLEARN_ENV = PYTHON_CROSSENV=1 + +$(eval $(python-package)) From patchwork Tue Aug 16 14:39:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1666892 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6YkL0WdCz1yfq for ; Wed, 17 Aug 2022 00:41:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1F64B408C9; Tue, 16 Aug 2022 14:41:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1F64B408C9 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m0u_e9uhJbi6; Tue, 16 Aug 2022 14:41:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 2C6EC403F9; Tue, 16 Aug 2022 14:41:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2C6EC403F9 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 B87921BF4D6 for ; Tue, 16 Aug 2022 14:40:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 93CAC82B97 for ; Tue, 16 Aug 2022 14:40:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 93CAC82B97 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 4eUODcuUFnIg for ; Tue, 16 Aug 2022 14:40:43 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5F36B829BB 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 5F36B829BB for ; Tue, 16 Aug 2022 14:40:42 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id bs25so12911438wrb.2 for ; Tue, 16 Aug 2022 07:40:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=eX5jxRbroLPgY2p6M7bGAaSEwzlEEtBSBLnb6jODfgA=; b=mD32VgPzhqGaLkCOG8xoQEebulEkClksA8Ot1NUtcF4H67cMw9/HiVpDaCEgXPUiBK 6PZzW4eUzjP0yqu1V0vIW7UmikM0y+koaxTIpPiAzVSnVWtx4Ef948GDN1wGxD8LiT6P 0PNnQAI+1f/gNJVOjHPPb10Qqh4W3BdFjiVbVM2GgsBJLYPPBM8oBUFU1/F+dmgY0Czy Tfqi+hht7DvwGGGNBkbT1ByGwkmB/zgPbzfkrBo2iy4FImTMPbwn4CORKvg5DIBOWbxQ MOyTiEmEzXU1fNl4Q7O1Cb6mKjUur2aV6ZsMA0d7Kp0UQVbmzBTWDOFxM8tPne0eVsNe pxNQ== X-Gm-Message-State: ACgBeo2/caupbUCiCV2ogq820vtFfIa8XKMgfB0GcybyNE2vA//02Ugr XCqXA/p6x2FOISCGiFn3uplLJdGhgdU= X-Google-Smtp-Source: AA6agR7FNDnng+auIfCbOhAETjq6OD8RPlzIp96jXhV0k8B/gybb6LR3tAHgzCEF/ykHd1DQF49EEw== X-Received: by 2002:adf:db06:0:b0:220:7a57:6665 with SMTP id s6-20020adfdb06000000b002207a576665mr12149383wri.55.1660660841691; Tue, 16 Aug 2022 07:40:41 -0700 (PDT) Received: from pc-140.home ([2a01:cb1c:794:2300:d109:33e7:bc94:49e5]) by smtp.gmail.com with ESMTPSA id j36-20020a05600c1c2400b003a4c6e67f01sm13844300wms.6.2022.08.16.07.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:40:41 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Tue, 16 Aug 2022 16:39:43 +0200 Message-Id: <20220816143943.16142-7-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220816143943.16142-1-guillaume.bressaix@gmail.com> References: <20220816143943.16142-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=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=eX5jxRbroLPgY2p6M7bGAaSEwzlEEtBSBLnb6jODfgA=; b=MiAczL988E8033PH9fPUyX10lx2EMftmYDUnZLSmT3qouAmIqbDJb58XczedmN6nR5 4xOqyqpDewN36YlAZTrQ6+ODbzwIKEWh/cGzqz275m1oYvK9IMQC5QD6SDcPI4buzitj d8bnkr17N6/nhdnIGFcBfiOVh0GhzOk3RFRtISQyeezbB3CUm2234RJRgIIIXGwPRYA+ N/9+vq89+aLuGaK14zlJPxdprbo9fA1Xp3LY5F2vV5MfdwlIcI03vwL2a0phfty072nw hgmfShJ+/pjWSfYbknXaW4/hOxJu1XV9jtZ33+O1zCoM2cqQQ1MPjH/FGrNe1bFyczvU iOrA== 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=MiAczL98 Subject: [Buildroot] [PATCH v1 7/7] support/testing: add python-scikitlearn test 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" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Guillaume W. Bres --- Execute this test with ./support/testing/run-tests -d dl -o test-results -k tests.package.test_python_scikitlearn.TestPythonPy3ScikitLearn --- .../package/sample_python_scikitlearn.py | 4 +++ .../tests/package/test_python_scikitlearn.py | 31 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 support/testing/tests/package/sample_python_scikitlearn.py create mode 100644 support/testing/tests/package/test_python_scikitlearn.py diff --git a/support/testing/tests/package/sample_python_scikitlearn.py b/support/testing/tests/package/sample_python_scikitlearn.py new file mode 100644 index 0000000000..af9eef87ef --- /dev/null +++ b/support/testing/tests/package/sample_python_scikitlearn.py @@ -0,0 +1,4 @@ +from sklearn import datasets + +iris = datasets.load_iris() +digits = datasets.load_digits() diff --git a/support/testing/tests/package/test_python_scikitlearn.py b/support/testing/tests/package/test_python_scikitlearn.py new file mode 100644 index 0000000000..d729961306 --- /dev/null +++ b/support/testing/tests/package/test_python_scikitlearn.py @@ -0,0 +1,31 @@ +import os + +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3ScikitLearn(TestPythonPackageBase): + __test__ = True + # We can't use the base configuration, as we need a glibc + # toolchain for scipy + config = \ + """ + BR2_arm=y + BR2_TOOLCHAIN_EXTERNAL=y + BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y + BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_GLIBC_STABLE=y + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_SCIKITLEARN=y + BR2_TARGET_ROOTFS_EXT2=y + BR2_TARGET_ROOTFS_EXT2_SIZE="120M" + # BR2_TARGET_ROOTFS_TAR is not set + """ + sample_scripts = ["tests/package/sample_python_scikitlearn.py"] + timeout = 30 + + def login(self): + ext2_file = os.path.join(self.builddir, "images", "rootfs.ext2") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-drive", "file=%s,if=scsi,format=raw" % ext2_file], + kernel_cmdline=["rootwait", "root=/dev/sda"]) + self.emulator.login()