From patchwork Sat Mar 21 19:02:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1054 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C122B3F337 for ; Sat, 21 Mar 2020 20:03:25 +0100 (CET) Received: by mail-il1-f200.google.com with SMTP id a4sf8391820ili.14 for ; Sat, 21 Mar 2020 12:03:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584817404; cv=pass; d=google.com; s=arc-20160816; b=aH7+3eP0wpnPqNlcBuR+NS7smyrC3IwTewYvFz5YPkj6NGMdIdUMCINaaU0/OZ+StY mAwxkbdvphvhUG5YqGWsd0o3OP093oGlT+cbBtWfSIPnpVKea0u3BZQ1BZ3U5+kA9OCL qBSOB/EIQrKy7BGN7z2krWb+aM9NeesLpqfNZPPQz4Pr/H2Y0QMrKrdNnO6AbhpJoyBb a3Kzm73lGK5qV/oadio6kxIAYuL6TWmFGBZElYu7fgleSIWs0IsCIygW0A2m6lmKobcR mpC+gIA4jmN/m8pqOqHpXvm9EPlQGz53qgOf6Lt6SH+19D1YSL0bAZU8VgucHcb/HMwx zvtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=wlKQHuxHO9CaMqnuy+UsLcslWPpIy2+yDSO350z/vGE=; b=gUaGPJLzZdptYuoPRIxPEOhkjQyTb/TLMQKnVefgYj/RhpKNCNFFwBgxlT5iZRzUOP 999bX2PJo41h7DpuCcy52dgVe2Pzc2/Jwog4HT0kiECoeb/Hgfqp40OiN6TAGIPrEU4Y bVwjGXXHat9E6w5lXOnzvj+heS9tU+l6nxCfIKMKgZnzt9C3uWsFYs0BtlSTrnb6p9fA RyYemgD0RMDzhFMDcv4pkdKIPO9tn8OJAjRtPOY0HBB/YMyGNidUYfGb3PU05hhNuQcR zaHhrP0Y/eNuXQVmFkyHSw81+Srsl/QPg058pcpb8JcYwo4miaJsP3bBpecJDYVt2D+V SULg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="VaYq+/Jb"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=wlKQHuxHO9CaMqnuy+UsLcslWPpIy2+yDSO350z/vGE=; b=QIE4qppWz7U2cxFRY8eaOQjuxqEBrbZachUNTBn7HS4ehQ9sTfWq3IlPL5AwxGo68K n1YiZFZhXvzp4GFlBiAgcTHAt0S9ji3+63XanoJEJvgh3NCT53cM3FAt0ZnWarfLxVSy lwklVAk8TaotmtduawjW/Pp30CVDDXm7zKTKQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=wlKQHuxHO9CaMqnuy+UsLcslWPpIy2+yDSO350z/vGE=; b=mN/C0kJp1/cVMY9OFUbGdn0MYJzklLSZ57LgjondZEEpr7wVlQ23UDNwJFdzq0vqrv myf+606OYOrpopDCQA+T031qpMHC+OsUj+3JYrRmp0HiSNp87GBPmQ914RTBTe1ZY3W+ FL4cBHgsfuInDOy+VhIblIM4IazoogvI+Zs7qrd7eAgL/wC2IqW3Vsnf6avlCWqv9W+Z VzSYA3OSKi3bzlpZMwrQzT07ecnvw9WBJcDBHuLu7GOV4hff1bwuBPqtuymNw7eShcYH 4QqMMW0JzMOnLnnQ9Skktz00bt13S3UqMy05LEp4rp7vMyqpW1+fDQdZ0hi0/sE7AAKJ TCyg== X-Gm-Message-State: ANhLgQ3AVuuq+so+khPqmowDCykuUgacmkMZ1ha87j3UHaCwVc8Qil5U YIR1vd6Oi34K86iIl5h6fuHC5Os2 X-Google-Smtp-Source: ADFU+vvgNTIsloaj66d41PmR81nkY9zwkxJOzFVy6sQcSjvKMwly2FksjHV1Ryt4DJ5o3uw1wM3GHg== X-Received: by 2002:a92:3c04:: with SMTP id j4mr14856038ila.108.1584817404220; Sat, 21 Mar 2020 12:03:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:8787:: with SMTP id f7ls1547418ion.3.gmail; Sat, 21 Mar 2020 12:03:23 -0700 (PDT) X-Received: by 2002:a6b:8b07:: with SMTP id n7mr13034401iod.55.1584817403532; Sat, 21 Mar 2020 12:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584817403; cv=none; d=google.com; s=arc-20160816; b=Degh/n7ys5hZdqhtRvJn29QTEnrht9oWln7Vw+xVZ5tVLvf14HRaE23GwFXL3ALD43 E3MTyg6/vA9nPAkjhvg2pKNByYys9Sn20dvLx6oduqM5g3XdNDmdAGkORs2GAXJ5MdeH URqzn90SAJImE6YAlLJ7TywnndYxxu1odiPE1Xe2M4hCo//saPDWpT+3F4bkX+7Tv2rv k+0jAeLEsOyfxHtD9kEJ4Yi1CBNLB/MEhQ58ZLOqGLORwqqoe2PyHn2bi5A3v0VcrFC4 IUa5SGVONnlSwJqqRCAdpSQjgG7A/idhuk3e/Bc1rBzIdJ0GjGMaKjN5+DclrYWTC329 Gngg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VCG7P4OjUjEJUHvcAjsR2bpKw9ITJs7FaInb7yr5G2k=; b=RByTrY2C5PYDJJZXj/s0W4ENRM3z2QIHtc/neYsPApsQ8mgkEMmv7TkV4MXAvFXicv aLsmUTHWZuVrMZBZzt4CYJooWME2mgaP72p8DSl55nP4z9nSoa6TPfyjCYJoZTrNkjHP FUNCCudch6gA0KHD/szEnptioZO2IVM2vURRZiyn2JfgKwWrjS25TCjxneJHA4rWVe5I hx2wz9RI6ALEvNhpV1s4TYvMSsoeSbgA53HBNKspm/KYlFPnUTfn5u3Pb1UULAIL2HOP MHfHmEMeqQO60MBXnE0mBB/OMu+SnitEgMWd6Y5Uw1jZg273+UYvy/d5PoFAmXT8WRB/ uu4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="VaYq+/Jb"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j25sor8661477ili.135.2020.03.21.12.03.23 for (Google Transport Security); Sat, 21 Mar 2020 12:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:6945:: with SMTP id k5mr14206267plt.61.1584817403098; Sat, 21 Mar 2020 12:03:23 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:4d9c:1ea0:b435:7b90]) by smtp.gmail.com with ESMTPSA id k3sm8113377pgr.40.2020.03.21.12.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Mar 2020 12:03:22 -0700 (PDT) From: Jagan Teki To: buildroot@buildroot.org Cc: Angelo Compagnucci , Suniel Mahesh , Esben Haabendal , Yegor Yefremov , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v7 4/4] package/python-scipy: new package Date: Sun, 22 Mar 2020 00:32:41 +0530 Message-Id: <20200321190241.3590-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200321190241.3590-1-jagan@amarulasolutions.com> References: <20200321190241.3590-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="VaYq+/Jb"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add python-scipy with 1.4.1 release version. Signed-off-by: Jagan Teki --- Changes for v7: - update the commit message - drop 'BR2_PACKAGE_HOST_PYTHON_PYBIND11' selection from scipy DEVELOPERS | 1 + package/Config.in | 1 + package/python-scipy/Config.in | 22 ++++++++++++ package/python-scipy/python-scipy.hash | 9 +++++ package/python-scipy/python-scipy.mk | 46 ++++++++++++++++++++++++++ 5 files changed, 79 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 308a59b264..9340ae2815 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1152,6 +1152,7 @@ F: configs/orangepi_zero_plus2_defconfig F: configs/pine64_defconfig F: configs/pine64_sopine_defconfig F: package/python-pybind11 +F: package/python-scipy N: James Hilliard F: package/gensio/ diff --git a/package/Config.in b/package/Config.in index afe32f52b4..f5af9b07ea 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1120,6 +1120,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..4d8227c31a --- /dev/null +++ b/package/python-scipy/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_PYTHON_SCIPY + bool "python-scipy" + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy + depends on BR2_TOOLCHAIN_HAS_FORTRAN + depends on BR2_TOOLCHAIN_BUILDROOT_CXX + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_PYTHON_NUMPY + select BR2_PACKAGE_LAPACK + select BR2_PACKAGE_OPENBLAS + help + The SciPy library is one of the core packages that make up the SciPy + stack. It provides many user-friendly and efficient numerical + routines such as routines for numerical integration, interpolation, + optimization, linear algebra and statistics. + + https://www.scipy.org/scipylib/ + +comment "python-scipy needs toolchain w/ fortran and c++ and glibc or musl" + depends on BR2_PACKAGE_PYTHON3 + depends on !BR2_TOOLCHAIN_HAS_FORTRAN || \ + !BR2_TOOLCHAIN_BUILDROOT_CXX || \ + (!BR2_TOOLCHAIN_USES_GLIBC && !BR2_TOOLCHAIN_USES_MUSL) diff --git a/package/python-scipy/python-scipy.hash b/package/python-scipy/python-scipy.hash new file mode 100644 index 0000000000..c9d295ef6b --- /dev/null +++ b/package/python-scipy/python-scipy.hash @@ -0,0 +1,9 @@ +# Locally generated +sha256 dee1bbf3a6c8f73b6b218cb28eed8dd13347ea2f87d572ce19b289d6fd3fbc59 scipy-1.4.1.tar.gz +sha256 5cbdbe33385779958be8b9310497e32d2eec144d82ef425780d3e19f8af6de76 LICENSE.txt +sha256 37e64a498894ac7c3b070023e3689e954a8ecf8a23b90968d09a455f1b4f7b35 scipy/linalg/src/lapack_deprecations/LICENSE +sha256 606209a000716c5f66e33e180ce08434b96ed17db4975ab9723c6b5fbcc89609 scipy/ndimage/LICENSE.txt +sha256 3df9207af2fdb861af0ae3b22026f163b9bcfab4e525dc4943afe2ffa3f77624 scipy/optimize/tnc/LICENSE +sha256 f0cedf52503b2d42b83411a0a16e6fefac346dfad8fddc66f50050150123470c scipy/sparse/linalg/dsolve/SuperLU/License.txt +sha256 0926566f9f406178d1214f8cc796e166b1213dd7c05e0c5b461a8b8ac9e50bbe scipy/sparse/linalg/eigen/arpack/ARPACK/COPYING +sha256 34db0c0c4f931861d720555c9cd7a2e228d1290ba29af0f2ee80c41bb2038afb scipy/spatial/qhull_src/COPYING.txt diff --git a/package/python-scipy/python-scipy.mk b/package/python-scipy/python-scipy.mk new file mode 100644 index 0000000000..1d66b146ec --- /dev/null +++ b/package/python-scipy/python-scipy.mk @@ -0,0 +1,46 @@ +################################################################################ +# +# python-scipy +# +################################################################################ + +PYTHON_SCIPY_VERSION = 1.4.1 +PYTHON_SCIPY_SOURCE = scipy-$(PYTHON_SCIPY_VERSION).tar.gz +PYTHON_SCIPY_SITE = https://pypi.python.org/packages/04/ab/e2eb3e3f90b9363040a3d885ccc5c79fe20c5b8a3caa8fe3bf47ff653260 +PYTHON_SCIPY_LICENSE = BSD-3-Clause, BSD-2-Clause, BSD, BSD-Style, \ + Apache-2.0, MIT +PYTHON_SCIPY_LICENSE_FILES = \ + LICENSE.txt \ + scipy/linalg/src/lapack_deprecations/LICENSE \ + scipy/ndimage/LICENSE.txt \ + scipy/optimize/tnc/LICENSE \ + scipy/sparse/linalg/dsolve/SuperLU/License.txt \ + scipy/sparse/linalg/eigen/arpack/ARPACK/COPYING \ + scipy/spatial/qhull_src/COPYING.txt +PYTHON_SCIPY_SETUP_TYPE = setuptools +PYTHON_SCIPY_DEPENDENCIES += \ + host-python-numpy \ + host-python-pybind11 \ + lapack \ + openblas \ + python-numpy + +PYTHON_SCIPY_BUILD_OPTS = config_fc --fcompiler=gnu95 +PYTHON_SCIPY_ENV += F90=$(TARGET_CROSS)gfortran F77=$(TARGET_CROSS)gfortran + +# Provide system configuration options to numpy distutils extenions, telling +# to find all include files and libraries in staging directory. +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 + +# Use the target numpy pkg-config configuration files modified for target +# cross-compilation. Without this, numpy distutils will cause the linker to +# link with host libnpymath.a. +PYTHON_SCIPY_ENV += NPY_PKG_CONFIG_PATH=$(PYTHON_NUMPY_NPY_PKG_CONFIG_PATH) +PYTHON_SCIPY_INSTALL_STAGING = YES + +$(eval $(python-package))