From patchwork Thu Sep 3 13:13:16 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: 514062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 7047114029C for ; Thu, 3 Sep 2015 23:17:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A5B3B92F26; Thu, 3 Sep 2015 13:17: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 cX4zMPn9KxDl; Thu, 3 Sep 2015 13:17:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2E79D92E8F; Thu, 3 Sep 2015 13:17:40 +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 5A7D91C0F4D for ; Thu, 3 Sep 2015 13:17:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 56BD492E8D for ; Thu, 3 Sep 2015 13:17:37 +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 1kkxsuVmSUAK for ; Thu, 3 Sep 2015 13:17:35 +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 A043492E8B for ; Thu, 3 Sep 2015 13:17:35 +0000 (UTC) Received: from serveur.trabucayre.com (unknown [78.252.129.8]) by smtp3-g21.free.fr (Postfix) with ESMTP id 353DDA61B0; Thu, 3 Sep 2015 15:17:33 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Thu, 3 Sep 2015 15:13:16 +0200 Message-Id: <1441285996-29463-2-git-send-email-gwenj@trabucayre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441285996-29463-1-git-send-email-gwenj@trabucayre.com> References: <1441285996-29463-1-git-send-email-gwenj@trabucayre.com> Cc: Gwenhael Goavec-Merou Subject: [Buildroot] [PATCH v2 2/2] 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 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 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 +++ package/gnuradio/gnuradio.mk | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in index e264a21..3568a6c 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 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 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