From patchwork Tue Feb 12 12:24:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kpa_info@yahoo.fr X-Patchwork-Id: 219837 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 3B6112C0329 for ; Tue, 12 Feb 2013 23:25:17 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE61EA011B; Tue, 12 Feb 2013 12:25:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Vt4bjY7DnLT; Tue, 12 Feb 2013 12:25:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8A3D5A00A8; Tue, 12 Feb 2013 12:24:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3450F8F7A4 for ; Tue, 12 Feb 2013 12:24:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C2A9B80343 for ; Tue, 12 Feb 2013 12:24:42 +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 ePIt+cvCeNUN for ; Tue, 12 Feb 2013 12:24:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm12-vm0.bullet.mail.ird.yahoo.com (nm12-vm0.bullet.mail.ird.yahoo.com [77.238.189.196]) by whitealder.osuosl.org (Postfix) with SMTP id 6D86282030 for ; Tue, 12 Feb 2013 12:24:21 +0000 (UTC) Received: from [77.238.189.52] by nm12.bullet.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 12:24:19 -0000 Received: from [217.146.188.173] by tm5.bullet.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 12:24:19 -0000 Received: from [127.0.0.1] by smtp141.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 12:24:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1360671859; bh=WgTrjpWxuVojqdwuyHapLIXS6WNTLXElnqU1scqjyY4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=2MhwlpgB2novQS/VGkt+k1l2dk1aqah//BmshyGzux/yx/3GtYvSt+Nt0DWvZ/B+cOlyX3vZLTamobY7nMVVt8uncyaIXiIVrv2EPtrcXVToUs9P8eWZTvmvFaCkavq7Xdo2aMtslSy3F/BZFvfsj4ebEnas1M1axOZoAAABJ8c= X-Yahoo-Newman-Id: 933883.83029.bm@smtp141.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: jCunZfoVM1m2Gd.YnwGj9pjghKp1gtAUvsr6DyBpLgJAkX. nMsuW2FcT_dFlvPhUFp9HndHYHtoZx84mJsF28n15VsYhS.x.vyl03VN4iGB LRvmgjytw4.ZN5P06D9B1r0oVPOG7LG5vlG84qpuc2UVtMmvEZ26ebcAzxVk Q1sypGUlCzzMBKvY3DqDjaL0g6jOlrsZDgVKF7JH78gGNWCw1RcSjfMsR1DA lh5VaYL1Vii2cXfcxaXrUb7V8.C0gjodyWQHbAx2v7J7WQ7gFU.Tx462yFH3 NIqcYUIIDIfyo7rEVdWRIq3UB45nMN2WW7AmrwcvFWBi1o.5BLZSL0wic_vg .n_Nv4wl2Hnyl2NUNTlYpdubZ3at9TJ9Zqt7PJnCsRD6wDu6TjnpD3UOXlex LjPORvD3KorULbCeCDL2.yb0VyPHVViXwLv_LQ_rrngNOdK9zBMn0jZyVxWW 7TPD_Ta2Ysdq5X30yhQ5W3xncJE4N6_hrMgGD2A00fUnWD9xr5mEzeqfxLm4 - X-Yahoo-SMTP: gXxkLaeswBDA9gtBSIbQ8XWSflp0 Received: from kpa-move.lan.sensometrix.ch (kpa_info@109.164.253.69 with login) by smtp141.mail.ird.yahoo.com with SMTP; 12 Feb 2013 04:24:19 -0800 PST From: Patrick Gerber To: buildroot@busybox.net Date: Tue, 12 Feb 2013 13:24:07 +0100 Message-Id: <1360671849-7621-4-git-send-email-kpa_info@yahoo.fr> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360671849-7621-1-git-send-email-kpa_info@yahoo.fr> References: <1360671849-7621-1-git-send-email-kpa_info@yahoo.fr> Subject: [Buildroot] [PATCH 3/5] Define a new variable called PYTHON_GENERIC_DEPENDENCIES either to "python" or "python3" depending of the selected Python version. This is needed to easily set dependencies for packages that could be used either with Python 2 or Python 3. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Patrick Gerber --- package/python-generic/python-generic.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/python-generic/python-generic.mk diff --git a/package/python-generic/python-generic.mk b/package/python-generic/python-generic.mk new file mode 100644 index 0000000..0cf0e9d --- /dev/null +++ b/package/python-generic/python-generic.mk @@ -0,0 +1,16 @@ +############################################################# +# +# python-generic +# +############################################################# +# PYTHON_GENERIC_DEPENDENCIES is defined to the selected python +# version. + +ifeq ($(BR2_PACKAGE_PYTHON),y) + PYTHON_GENERIC_DEPENDENCIES = python +endif + +ifeq ($(BR2_PACKAGE_PYTHON3),y) + PYTHON_GENERIC_DEPENDENCIES = python3 +endif +