From patchwork Fri Jun 19 06:44:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1312605 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=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=nx59rIeF; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49p8T320qQz9sSd for ; Fri, 19 Jun 2020 16:45:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 301EA88D5D; Fri, 19 Jun 2020 06:45:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9sg6vH6vLLJ1; Fri, 19 Jun 2020 06:45:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id F2DF388D66; Fri, 19 Jun 2020 06:45:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A1FC71BF3B1 for ; Fri, 19 Jun 2020 06:45:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9954D88D66 for ; Fri, 19 Jun 2020 06:45:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6aO3JsScFiy5 for ; Fri, 19 Jun 2020 06:45:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id B07C488D5D for ; Fri, 19 Jun 2020 06:45:34 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id x6so8496911wrm.13 for ; Thu, 18 Jun 2020 23:45:34 -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=1jZ6rai/P3Y897NZbDJa2a8eHIoQALJNfIndcwsDatk=; b=nx59rIeF6x7Bz0S/77AfMcClsueYZjmMSQ6uSiW1LDOBM6X5JsPtZtUNDCG9LsOWzk TGbw9IsYsyuudAoQcHgrM4EC8YSXRghQ1nfdNXoVyjgkgiiBF8vjkWe2BncZIemfHiTf 244++7p6tNvY5GwokBp6KTkh5wE0BWaro8rpiAHhhoC6SfsZetULQgxoj7/TB/uah72m S4NOApgpXc7VZMpXJe3o1l9LnD90srNRji9QDVZDeyHgu7AfIynu2L50nTxiSjRQM/5I DdFGycjNXKi335BYdSVneG0XcAErJv1zxzsFuYwfwbzEaxWcJRrSTzc3y+x3WfKhFqP/ yJAQ== 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=1jZ6rai/P3Y897NZbDJa2a8eHIoQALJNfIndcwsDatk=; b=LNImzNiOCpiO4sko+/d2bnrigyv22U6CBnvjrgY4vuvZNqItY8mNXljb3D89YoIyWn fLPc+YbwU6q53ojkK/Gs64/dFPOW2cxat7N1ETfubceVAtulIVi/xjeAqCwKW49WxSvT 1DJyYvtiLHs7wVDnbu5mpW/tMJ8I2zzbSFoAq5RrmcTj0YhQdeIIbO8ij52VeLl4bGp/ G2WrFTcGzpjrrCxDIl+ad2pEGm3Hkf9UlGaMncmgxHHNd79BzxQYcxtNItnTNSoYuwhN SpeIFkwkPI0WtRxsEv4mQGRZ82m91aI67vPPQ0cF06MaviF1cb3NNAE0nR8mX+OIPTNf fhGg== X-Gm-Message-State: AOAM5323bsWb1kcX0GEn3tenEcH2xUVVUBN3WKG0Rb5BOJE+cZlGA1ft wlnRt2ALOgdNBJ9AEo0Rnch6U75b X-Google-Smtp-Source: ABdhPJx2+ErVsLrCT7V5Zj9HWKFajkoMvKt9oO6TiC9Vdc2DqXTKft4ZdHaT1SHLsEvVlnFPChnr3Q== X-Received: by 2002:adf:f70e:: with SMTP id r14mr2527810wrp.150.1592549132848; Thu, 18 Jun 2020 23:45:32 -0700 (PDT) Received: from lenovoX201.home ([2a01:cb1c:794:2300:8ea9:82ff:fe03:6fc]) by smtp.gmail.com with ESMTPSA id g3sm6794206wrb.46.2020.06.18.23.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 23:45:32 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Fri, 19 Jun 2020 08:44:58 +0200 Message-Id: <20200619064501.11113-1-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] python-scipy: needs host-python-pybind X-BeenThere: buildroot@busybox.net 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@busybox.net Sender: "buildroot" patch serie to add python-scipy Signed-off-by: Guillaume W. Bres --- python-pybind is a build time dependency for python-scipy 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 634e869e40..239893b97c 100644 --- a/package/python-pybind/python-pybind.mk +++ b/package/python-pybind/python-pybind.mk @@ -11,3 +11,4 @@ PYTHON_PYBIND_LICENSE_FILES = LICENSE PYTHON_PYBIND_SETUP_TYPE = setuptools $(eval $(python-package)) +$(eval $(host-python-package)) From patchwork Fri Jun 19 06:44:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1312606 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=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LuVWw3pP; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49p8TJ3Gmyz9sT6 for ; Fri, 19 Jun 2020 16:45:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A686388DB9; Fri, 19 Jun 2020 06:45:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SZZaIPeKLRk5; Fri, 19 Jun 2020 06:45:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D0BC88D71; Fri, 19 Jun 2020 06:45:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E96F81BF3B1 for ; Fri, 19 Jun 2020 06:45:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E4D6C88D79 for ; Fri, 19 Jun 2020 06:45:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zF+jZfIfNWdB for ; Fri, 19 Jun 2020 06:45:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id DD52A88D66 for ; Fri, 19 Jun 2020 06:45:43 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id g10so7390895wmh.4 for ; Thu, 18 Jun 2020 23:45:43 -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=8j7hGNSxWemYwlTmUCdDKEE2D/b4c6WLBF46mTMfM0k=; b=LuVWw3pPQPZkjr1pxNdgRoFCKw3m/Ipld4nuDck3gapXzFoJoqgJGbK1urg/QLMole JqRkZHj6DK8ZnAIwa7i26bSdTyeaqnlFVccXhKBLiRD0DeYdk3bkhB+wI1fexlbG4ZeD gJyEOzzP4ztA6NuyEk0XCnQKLmANg6U5EXVDnOJKnwhLj9qdsWPyoKK7nMQVAu4Adrv7 Kz+QpYe6RsBxqOrEz1vFenTbMD8zleDusdiVkkx5eGq2lvGO6BGgFZrBFCFYDU7iN+Ot agd+jk1Prn4Y53i5rQpYZWzX5ZyATcFAD3ZWgIbql5zf5A0e5igBD3IXmJBGl6m5ofjd 9OSA== 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=8j7hGNSxWemYwlTmUCdDKEE2D/b4c6WLBF46mTMfM0k=; b=SRf/ONkz/vc+4ewIyxtTEPdoblSoginjbWzHGQD0C07Mex1QR0jMoaz7igauBteVIf adYvL6G48V7M7Y6j6KCa7F4Uoba5SdKICq8DYZvMv7T+PiOa3ENtd0+vzwYvfe8qCviR ySz+CGQYPfm5FaF+g95ZTRntTKD/5DRXIK/IQESnBe+xgVyCv4r+4IA0F3raH3BHM2D6 FDqxVJ39CZYNJW3uXrq0GA/XEpWZhnF+PcWvbBoDBOEeXlWk5r37r3N8iPhKY/TcZ6dJ xyRes4iUaInQv/JK82gFPSh0mni6zVPzC1OYGH4TD733D/2/7MJOLALODZUT0PY7kiy6 aMBg== X-Gm-Message-State: AOAM533A7WpnyHy9Xwl+x5/vn0A2BM3jifZiDs3irIVVCUt01PJKDErV o7IiMOsUea7HvWvJJKfHmTLzBtZC X-Google-Smtp-Source: ABdhPJzOaJTgyplkA2kMIyfs3jP3E94+/K9mlJh7bA6ZRXDi9iPDRkNuWTaaD+oNK3kQxUMz/yZQqg== X-Received: by 2002:a1c:f203:: with SMTP id s3mr656934wmc.126.1592549142189; Thu, 18 Jun 2020 23:45:42 -0700 (PDT) Received: from lenovoX201.home ([2a01:cb1c:794:2300:8ea9:82ff:fe03:6fc]) by smtp.gmail.com with ESMTPSA id g3sm6794206wrb.46.2020.06.18.23.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 23:45:41 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Fri, 19 Jun 2020 08:44:59 +0200 Message-Id: <20200619064501.11113-2-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200619064501.11113-1-guillaume.bressaix@gmail.com> References: <20200619064501.11113-1-guillaume.bressaix@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] python-scipy: needs host-python-pip X-BeenThere: buildroot@busybox.net 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@busybox.net Sender: "buildroot" patch serie to add python-scipy Signed-off-by: Guillaume W. Bres --- python-pip is a build time dependency of python-scipy Signed-off-by: Guillaume W. Bres --- package/python-pip/python-pip.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/python-pip/python-pip.mk b/package/python-pip/python-pip.mk index cc40eecdfe..0af41ab807 100644 --- a/package/python-pip/python-pip.mk +++ b/package/python-pip/python-pip.mk @@ -12,3 +12,4 @@ PYTHON_PIP_LICENSE = MIT PYTHON_PIP_LICENSE_FILES = LICENSE.txt $(eval $(python-package)) +$(eval $(host-python-package)) From patchwork Fri Jun 19 06:45:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1312607 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=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=pwXPf4V8; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49p8TS74ktz9sT2 for ; Fri, 19 Jun 2020 16:46:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E15188DF3; Fri, 19 Jun 2020 06:46:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S-k+BTjYoTBI; Fri, 19 Jun 2020 06:46:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1BCCC88D77; Fri, 19 Jun 2020 06:46:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 38E541BF3B1 for ; Fri, 19 Jun 2020 06:45:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 31C1A88D77 for ; Fri, 19 Jun 2020 06:45:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b+oWTWkLxi2W for ; Fri, 19 Jun 2020 06:45:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0BF5188D66 for ; Fri, 19 Jun 2020 06:45:56 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id d128so8027675wmc.1 for ; Thu, 18 Jun 2020 23:45:55 -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=veNEzTN4wQYlKDaUthu5EK3JcyGsmMC/crTcabddZUU=; b=pwXPf4V8xGJ4Nes5sCEFdfPrmE3N2HkeV+B0pJi541VqQSP2HqPonPUskqdu8cBY2w 0EVukluh+8n0Y5xVci5B8fhnR4a2rcmET+hQCBEXH4Ok8TEXJtuzd03KhW5GPsZwPMEC iML1ZirR2QHie6gmEFR49LrZSjM6MAkBu7J/yMo6l/87gQgUtVxVTclg3mMld6+bZG4B 580LbyvS5q+2UN5JSaEPged2cUTrQl9to/PROO5jj4SdL7fOFYYSsau1U6N7bj3k9WDf +o0a6B7BvqAq/sTQPzWxrtNySYstxQ76rwLRnRv8NWbzBhh19np1zccccmLV8mN05KjU Re+Q== 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=veNEzTN4wQYlKDaUthu5EK3JcyGsmMC/crTcabddZUU=; b=NFSyHZFznMUp5NdblTAGVpoDqwtWsb30bHs/rLICO3MKOCvYBiLxAWLhVVXwZviCzY 1xvcBm2O10jt+7JRP4/OBLwMyGq5So+wYfe9XflofqFZPi+XZv8uSJHgUDRq75lqQH64 QA1J0CIWWAMr52jGJjLoQs9WifnaQBnE88+n3sQBq6wqVuY6kLVNAdXW9ZiCAZwy1idm ODLFvAWiEn+cSDrz4LmzkPZMjNv9d5SwywNEbTEtW9t1y41yPkst6g4SGC1glNvV7Vxl 6J7hPAV0vGTzUiiq4s4EpN/LcjokF9z5fgVy9AxPQc8Fhx3DcqoQsC4upXiyyx9e3yOZ zkwA== X-Gm-Message-State: AOAM533YaSA9ojTD+xlOf+2e7wYZum0zTjEP08oPgYIr952Lhjcb6gD2 fbRtg8MM28RClduIa5enkijERDyi X-Google-Smtp-Source: ABdhPJwtgFEgpZu0HKDkSdg2oaZ1llXn8/tKpGalJgYuTDI2+QiJeLa/BmjwmYG+qc0mWO69ueeveg== X-Received: by 2002:a1c:7d55:: with SMTP id y82mr2072586wmc.177.1592549154306; Thu, 18 Jun 2020 23:45:54 -0700 (PDT) Received: from lenovoX201.home ([2a01:cb1c:794:2300:8ea9:82ff:fe03:6fc]) by smtp.gmail.com with ESMTPSA id g3sm6794206wrb.46.2020.06.18.23.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 23:45:53 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Fri, 19 Jun 2020 08:45:00 +0200 Message-Id: <20200619064501.11113-3-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200619064501.11113-1-guillaume.bressaix@gmail.com> References: <20200619064501.11113-1-guillaume.bressaix@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3] python-scipy: new package X-BeenThere: buildroot@busybox.net 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@busybox.net Sender: "buildroot" Patch serie to add python-scipy Signed-off-by: Guillaume W. Bres --- Things to note about this package: + python-numpy is the main dependency and is required at build time. I followed what is done in matplotlib for dependencies & selection methods + the two previous commits are mandatory + unlike python-numpy, gfortran is not an option, hence the dependency + there is no need to modify current python-numpy.mk for this package to build & run fine + like in python-numpy.mk, I use the "site.cfg" trick, to locate dependencies (it does not build without it) + unlike python-numpy, openblas & claplack libs are not optionnal, they are a requirement + more useful info here https://docs.scipy.org/doc/scipy/reference/building/linux.html Signed-off-by: Guillaume W. Bres --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-scipy/Config.in | 24 +++++++++++++++++++ package/python-scipy/python-scipy.hash | 4 ++++ package/python-scipy/python-scipy.mk | 33 ++++++++++++++++++++++++++ 5 files changed, 63 insertions(+) create mode 100644 package/python-scipy/Config.in create mode 100644 package/python-scipy/python-scipy.hash create mode 100644 package/python-scipy/python-scipy.mk diff --git a/DEVELOPERS b/DEVELOPERS index 9a94307082..2f44bbd117 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1053,6 +1053,7 @@ N: Guillaume William Brs F: package/liquid-dsp/ F: package/pixiewps/ F: package/python-pybind/ +F: package/python-scipy/ F: package/reaver/ N: Guo Ren diff --git a/package/Config.in b/package/Config.in index b0a7da2f5c..394f32a647 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1131,6 +1131,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-scipy/Config.in" source "package/python-sdnotify/Config.in" source "package/python-secretstorage/Config.in" source "package/python-see/Config.in" diff --git a/package/python-scipy/Config.in b/package/python-scipy/Config.in new file mode 100644 index 0000000000..a9d9fa181e --- /dev/null +++ b/package/python-scipy/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_PYTHON_SCIPY + bool "python-scipy" + depends on BR2_TOOLCHAIN_HAS_FORTRAN + depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS # build + 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_OPENBLAS # build + select BR2_PACKAGE_CLAPACK # build + select BR2_PACKAGE_PYTHON_NUMPY # runtime + help + Scipy is a Python package that includes modules for + statistics, optimization, linear algebra and much + more. + + http://www.scipy.org/ + +comment "python-scipy needs toolchain with fortran" + depends on !BR2_TOOLCHAIN_HAS_FORTRAN + +comment "python-scipy needs lib openblas" + depends on !BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS + +comment "python-scipy needs python-numpy" + depends on !BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS diff --git a/package/python-scipy/python-scipy.hash b/package/python-scipy/python-scipy.hash new file mode 100644 index 0000000000..0ae10a28f3 --- /dev/null +++ b/package/python-scipy/python-scipy.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 fd8c7b907c3fc4df1830cdce1608057248deb30afa34ac4f8f31c3784b3e4e53 v1.4.1.tar.gz +# License files, locally calculated +sha256 0615c3b553439d39155885fedd7078a923974e84330f8d5d7660074e7c8826a3 LICENSE.txt diff --git a/package/python-scipy/python-scipy.mk b/package/python-scipy/python-scipy.mk new file mode 100644 index 0000000000..ab94cab07b --- /dev/null +++ b/package/python-scipy/python-scipy.mk @@ -0,0 +1,33 @@ +################################################################################ +# +# python-scipy +# +################################################################################ + +PYTHON_SCIPY_VERSION = 1.4.1 +PYTHON_SCIPY_SOURCE = v$(PYTHON_SCIPY_VERSION).tar.gz +PYTHON_SCIPY_SITE = https://github.com/scipy/scipy/archive +PYTHON_SCIPY_LICENSE = BSD-3-Clause +PYTHON_SCIPY_LICENSE_FILES = LICENSE.txt doc/sphinxext/LICENSE.txt \ + doc/scipy-sphinx-theme/LICENSE.txt +PYTHON_SCIPY_SETUP_TYPE = setuptools +PYTHON_SCIPY_DEPENDENCIES = host-python-cython host-python-pip \ + host-python-numpy host-python-pybind + +PYTHON_SCIPY_ENV = ATLAS=none +PYTHON_SCIPY_ENV += LDSHARED="$(TARGET_CROSS)gcc" +PYTHON_SCIPY_ENV += LDFLAGS="$(TARGET_LDFLAGS) -shared \ + -L$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/numpy/core/lib" + +# must be used to locate 'gfortran' +PYTHON_SCIPY_ENV += F90="$(TARGET_FC)" + +# trick to locate 'lapack' and 'blas' +define PYTHON_SCIPY_CONFIGURE_CMDS + rm -f $(@D)/site.cfg + echo "[DEFAULT]" >> $(@D)/site.cfg + echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg + echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg +endef + +$(eval $(python-package))