From a71d8724100ec5b08ca3171fa773dc428d4c32a8 Mon Sep 17 00:00:00 2001 From: Carsten Lohrke Date: Tue, 6 Jun 2006 22:03:52 +0000 Subject: [PATCH] Adding NEED_PYTHON variable, as proposed. --- eclass/python.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/python.eclass b/eclass/python.eclass index 7d6c27d31be8..06acd5b9c719 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.21 2005/07/11 15:08:06 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.22 2006/06/06 22:03:52 carlo Exp $ # # Author: Alastair Tse # @@ -20,6 +20,10 @@ inherit alternatives +if [[ -n NEED_PYTHON ]] ; then + DEPEND=">=dev-lang/python-${NEED_PYTHON}" + RDEPEND="${DEPEND}" +fi __python_eclass_test() { __python_version_extract 2.3 -- 2.26.2