From patchwork Wed Feb 13 09:20:35 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: 220094 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AC5022C0090 for ; Wed, 13 Feb 2013 20:22:12 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 84C7E312AD; Wed, 13 Feb 2013 09:22:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJL8Feqv-XhC; Wed, 13 Feb 2013 09:22:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 89BB2312B6; Wed, 13 Feb 2013 09:21:59 +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 14E658F753 for ; Wed, 13 Feb 2013 09:22:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8BF0F8BA71 for ; Wed, 13 Feb 2013 09:21:52 +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 fu0NJhNuRLqA for ; Wed, 13 Feb 2013 09:21:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm17-vm0.bullet.mail.ird.yahoo.com (nm17-vm0.bullet.mail.ird.yahoo.com [77.238.189.214]) by whitealder.osuosl.org (Postfix) with SMTP id C17A68001D for ; Wed, 13 Feb 2013 09:21:16 +0000 (UTC) Received: from [77.238.189.233] by nm17.bullet.mail.ird.yahoo.com with NNFMP; 13 Feb 2013 09:21:15 -0000 Received: from [46.228.39.87] by tm14.bullet.mail.ird.yahoo.com with NNFMP; 13 Feb 2013 09:21:15 -0000 Received: from [127.0.0.1] by smtp124.mail.ir2.yahoo.com with NNFMP; 13 Feb 2013 09:21:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1360747275; bh=4AH0MHXFB7HZS9bKGGsbPkS02YQ2IZYxGNg3kC3abPo=; 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=Z2pwik+aCJYzLCenxz//Kol/AL/ay9M/ebIWSRMZVFuxAKYXKs+KT+la/sAaV573j06y8ds8sYFkcEFO1E5Anx6zgJSWnTBM6Fuoc5OIxBOJBd6u7hSTu4jKRmqGHMaEnGZpgk2JCZGR1Q4EHLxgLiR2rGt3/pCowVAF7MjxwZw= X-Yahoo-Newman-Id: 269338.54431.bm@smtp124.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: YhLNxoUVM1k0cf3FxG7ocF7ejd6y0.4pPYi1zaZXVvd2CLr 72Ruy7rhtju8OzS4C7vnFGje7OwDa6gOrwrJA3S.cu7WWwEy9RcHFVVV0qo3 3YoyCd03z3II7jEN4OxNTaKlwx0oxYKYG6dYro4vC8oUROYUhGcn5NLL23BU iJiqMih_rYPFNpA5d_OKG7xE_uBDMuz98zxdlRwWMfEC4uVzBXjpUqrVi38K nWKzr.GgGaFc_HEgcy5dG1kh2yuTEGB__EjQ42or6g3YName.WPw0tqw6QCF DU9zgevgeEWIyY3PuOW5BXFtY53fGelfHz5.kn3.d.bv_j7OxLyjagqxs4nN 64PXAUlcdu2I4nQZCzxYkRbAGdnN1BoBukBBhfz.neTYZvASR1sv1y4X5f6Z M2x3EtKqtQO99M9cBZx_WionzPgMX1JeZwR0ritm4bthYP1frRlCGWo6a9YR 18FWL8B82A0QDZMF5lwT_qb7OFSEPYk.mgsPrRdotiafAj41Fs5BCSBE- X-Yahoo-SMTP: gXxkLaeswBDA9gtBSIbQ8XWSflp0 Received: from troinex.lan.sensometrix.ch (kpa_info@46.140.83.238 with login) by smtp124.mail.ir2.yahoo.com with SMTP; 13 Feb 2013 09:21:15 +0000 UTC From: Patrick Gerber To: buildroot@busybox.net Date: Wed, 13 Feb 2013 10:20:35 +0100 Message-Id: <1360747237-30048-4-git-send-email-kpa_info@yahoo.fr> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360747237-30048-1-git-send-email-kpa_info@yahoo.fr> References: <1360747237-30048-1-git-send-email-kpa_info@yahoo.fr> Subject: [Buildroot] [PATCH v3 3/5] Add common declaration to ease the support of both version 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 Define a new variable called PYTHON that contains either "python" or "python3" depending of the selected Python version. This is needed to easily set dependencies and to call the right version of python for packages that support both version of python. Signed-off-by: Patrick Gerber --- package/python-common/python-common.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/python-common/python-common.mk diff --git a/package/python-common/python-common.mk b/package/python-common/python-common.mk new file mode 100644 index 0000000..712b895 --- /dev/null +++ b/package/python-common/python-common.mk @@ -0,0 +1,16 @@ +############################################################# +# +# python-common +# +############################################################# +# Define some symbol usefull to make python package that works +# with python2 and python3. + +ifeq ($(BR2_PACKAGE_PYTHON),y) + PYTHON = python +endif + +ifeq ($(BR2_PACKAGE_PYTHON3),y) + PYTHON = python3 +endif +