From b85081580d1a508d776a9e910d0ee60f29fff408 Mon Sep 17 00:00:00 2001 From: drochner Date: Thu, 17 Jan 2002 11:06:42 +0000 Subject: define a PYVERSSUFFIX (major.minor) and use it to define PYTHONBIN add some comments --- lang/python/pyversion.mk | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'lang') diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 9bc1a798d37..354be09d88e 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.4 2002/01/16 20:09:08 drochner Exp $ +# $NetBSD: pyversion.mk,v 1.5 2002/01/17 11:06:42 drochner Exp $ .if !defined(PYTHON_PYVERSION_MK) PYTHON_PYVERSION_MK= defined @@ -67,20 +67,26 @@ _PYTHON_VERSION= ${_PYTHON_VERSION_FIRSTACCEPTED} .endif # -# set variables for the version we decided to use +# set variables for the version we decided to use: +# PYVERSSUFFIX: suffix to executables and in library path, +# equal to sys.version[0:3] +# PYPKGPREFIX: prefix to use in PKGNAME for extensions which can install +# to multiple Python versions # .if ${_PYTHON_VERSION} == "22" DEPENDS+= ${BUILDLINK_DEPENDS.python22}:../../lang/python22 -PYTHONBIN= ${LOCALBASE}/bin/python2.2 +PYVERSSUFFIX= 2.2 PYPKGPREFIX= py22 .elif ${_PYTHON_VERSION} == "21" DEPENDS+= ${BUILDLINK_DEPENDS.python21}:../../lang/python21 -PYTHONBIN= ${LOCALBASE}/bin/python2.1 +PYVERSSUFFIX= 2.1 PYPKGPREFIX= py21 .elif ${_PYTHON_VERSION} == "20" DEPENDS+= ${BUILDLINK_DEPENDS.python20}:../../lang/python20 -PYTHONBIN= ${LOCALBASE}/bin/python2.0 +PYVERSSUFFIX= 2.0 PYPKGPREFIX= py20 .endif +PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX} + .endif # PYTHON_PYVERSION_MK -- cgit v1.2.3