From patchwork Mon Oct 5 08:48:52 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: 526256 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 95A46140D5F for ; Mon, 5 Oct 2015 19:53:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1B3A68BDCA; Mon, 5 Oct 2015 08:53:26 +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 JsQkbi1POzre; Mon, 5 Oct 2015 08:53:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 164118BD59; Mon, 5 Oct 2015 08:53:24 +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 942BF1C10D5 for ; Mon, 5 Oct 2015 08:53:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8E58E8D5AF for ; Mon, 5 Oct 2015 08:53:22 +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 8rKxVVMBCylY for ; Mon, 5 Oct 2015 08:53:21 +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 82EC98805E for ; Mon, 5 Oct 2015 08:53:21 +0000 (UTC) Received: from serveur.trabucayre.com (unknown [78.252.129.8]) by smtp3-g21.free.fr (Postfix) with ESMTP id A037FA61C4; Mon, 5 Oct 2015 10:53:17 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Mon, 5 Oct 2015 10:48:52 +0200 Message-Id: <1444034932-6251-1-git-send-email-gwenj@trabucayre.com> X-Mailer: git-send-email 2.1.4 Cc: Gwenhael Goavec-Merou Subject: [Buildroot] [PATCH v3 1/1] gnuradio: gnuradio-python: 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 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 --- 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 | 1 + package/gnuradio/gnuradio.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in index e264a21..3b4463f 100644 --- a/package/gnuradio/Config.in +++ b/package/gnuradio/Config.in @@ -47,6 +47,7 @@ config BR2_PACKAGE_GNURADIO_PYTHON bool "python support" select BR2_PACKAGE_BOOST_PYTHON select BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_NUMPY help Enable python component diff --git a/package/gnuradio/gnuradio.mk b/package/gnuradio/gnuradio.mk index fc5cd1f..565c113 100644 --- a/package/gnuradio/gnuradio.mk +++ b/package/gnuradio/gnuradio.mk @@ -86,7 +86,7 @@ GNURADIO_CONF_OPTS += -DENABLE_GR_FILTER=OFF endif ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y) -GNURADIO_DEPENDENCIES += python +GNURADIO_DEPENDENCIES += python python-numpy GNURADIO_CONF_OPTS += -DENABLE_PYTHON=ON else GNURADIO_CONF_OPTS += -DENABLE_PYTHON=OFF