From patchwork Wed Oct 7 07:43:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 527162 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7C7E2140DA8 for ; Wed, 7 Oct 2015 18:48:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4850C89F91; Wed, 7 Oct 2015 07:48:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aG3hoccXny0h; Wed, 7 Oct 2015 07:47:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3C7018A070; Wed, 7 Oct 2015 07:47:57 +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 55CEC1C1EF2 for ; Wed, 7 Oct 2015 07:47:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5131E9159A for ; Wed, 7 Oct 2015 07:47: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 fLzDfWRpzilj for ; Wed, 7 Oct 2015 07:47:51 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by whitealder.osuosl.org (Postfix) with ESMTPS id A02C2915DB for ; Wed, 7 Oct 2015 07:47:51 +0000 (UTC) Received: from serveur.trabucayre.com (unknown [78.252.129.8]) by smtp3-g21.free.fr (Postfix) with ESMTP id A96CFA624E; Wed, 7 Oct 2015 09:47:49 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Wed, 7 Oct 2015 09:43:19 +0200 Message-Id: <1444203799-16230-3-git-send-email-gwenj@trabucayre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444203799-16230-1-git-send-email-gwenj@trabucayre.com> References: <1444203799-16230-1-git-send-email-gwenj@trabucayre.com> Cc: Gwenhael Goavec-Merou Subject: [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gwenhael Goavec-Merou Some gnuradio python blocks needs python-numpy present. Without python-numpy, gnuradio-python based apps fails, on runtime, with traceback like: Traceback (most recent call last): File "./top_block.py", line 18, in from gnuradio import analog File "/usr/lib/python2.7/site-packages/gnuradio/analog/__init__.py", line 35, in from am_demod import * File "/usr/lib/python2.7/site-packages/gnuradio/analog/am_demod.py", line 22, in from gnuradio import gr File "/usr/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 44, in from top_block import * File "/usr/lib/python2.7/site-packages/gnuradio/gr/top_block.py", line 30, in from hier_block2 import hier_block2 File "/usr/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 26, in import pmt File "/usr/lib/python2.7/site-packages/pmt/__init__.py", line 58, in from pmt_to_python import pmt_to_python as to_python File "/usr/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22, in import numpy ImportError: No module named numpy Signed-off-by: Gwenhael Goavec-Merou Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Samuel Martin --- Changes v5 -> v6: * add space between # and runtime Changes v4 -> v5: * Re-add BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS Changes v3 -> v4: * add #runtime comment to BR2_PACKAGE_PYTHON_NUMPY select; * suppress python-numpy in GNURADIO_DEPENDENCIES variable (not needed for buildtime) Changes v2 -> v3: * Since commit 826a2bc18bc0be0b08f2926c9fa1819fe909557c no special attentions is needed to select python-numpy. So BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS is no more needed Changes v1 -> v2: * Add dependy to BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS; * gnuradio-python select numpy; * gnuradio-utils select again gnuradio-python; * fix commit message --- package/gnuradio/Config.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in index e264a21..f188d87 100644 --- a/package/gnuradio/Config.in +++ b/package/gnuradio/Config.in @@ -45,13 +45,16 @@ config BR2_PACKAGE_GNURADIO_FEC config BR2_PACKAGE_GNURADIO_PYTHON bool "python support" + depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS select BR2_PACKAGE_BOOST_PYTHON select BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_NUMPY # runtime help Enable python component config BR2_PACKAGE_GNURADIO_UTILS bool "gr-utils support" + depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS select BR2_PACKAGE_GNURADIO_PYTHON help Misc python utilities