From patchwork Tue Feb 12 12:24:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [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. Date: Tue, 12 Feb 2013 02:24:07 -0000 From: kpa_info@yahoo.fr X-Patchwork-Id: 219837 Message-Id: <1360671849-7621-4-git-send-email-kpa_info@yahoo.fr> To: buildroot@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 +