diff options
author | alexbl <alexbl@FreeBSD.org> | 2007-01-17 18:41:48 +0800 |
---|---|---|
committer | alexbl <alexbl@FreeBSD.org> | 2007-01-17 18:41:48 +0800 |
commit | 34a2803d08fdae6c8a82c1c514dc258ce5011953 (patch) | |
tree | 32ed8682d6d1421fef1d0602fa827a601adc887f /Mk/bsd.python.mk | |
parent | 9c227ab534b16c3d54db01c78dcc25c9e15ea960 (diff) | |
download | freebsd-ports-gnome-34a2803d08fdae6c8a82c1c514dc258ce5011953.tar.gz freebsd-ports-gnome-34a2803d08fdae6c8a82c1c514dc258ce5011953.tar.zst freebsd-ports-gnome-34a2803d08fdae6c8a82c1c514dc258ce5011953.zip |
- add a PYTHON_VER variable to bsd.python.mk, this provides a simple x.y
version variable for the Python installation which is to be used when
making egg filenames instead of using the internal _PYTHON_VERSION
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r-- | Mk/bsd.python.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index 69d19c5fd851..35e1e66ea596 100644 --- a/Mk/bsd.python.mk +++ b/Mk/bsd.python.mk @@ -327,6 +327,7 @@ PYTHON_PORTVERSION?=2.5 PYTHON_PORTSDIR= ${PORTSDIR}/lang/python25 PYTHON_REL= 250 PYTHON_SUFFIX= 25 +PYTHON_VER= 2.5 # Python-2.4 .elif ${PYTHON_VERSION} == "python2.4" @@ -334,6 +335,7 @@ PYTHON_PORTVERSION?=2.4.3 PYTHON_PORTSDIR= ${PORTSDIR}/lang/python24 PYTHON_REL= 243 PYTHON_SUFFIX= 24 +PYTHON_VER= 2.4 # Python-2.3 .elif ${PYTHON_VERSION} == "python2.3" @@ -341,6 +343,7 @@ PYTHON_PORTVERSION?=2.3.5 PYTHON_PORTSDIR= ${PORTSDIR}/lang/python23 PYTHON_REL= 235 PYTHON_SUFFIX= 23 +PYTHON_VER= 2.3 # Python-2.2 .elif ${PYTHON_VERSION} == "python2.2" @@ -348,6 +351,7 @@ PYTHON_PORTVERSION?=2.2.3 PYTHON_PORTSDIR= ${PORTSDIR}/lang/python22 PYTHON_REL= 223 PYTHON_SUFFIX= 22 +PYTHON_VER= 2.2 # Python-2.1 .elif ${PYTHON_VERSION} == "python2.1" @@ -355,6 +359,7 @@ PYTHON_PORTVERSION?=2.1.3 PYTHON_PORTSDIR= ${PORTSDIR}/lang/python21 PYTHON_REL= 213 PYTHON_SUFFIX= 21 +PYTHON_VER= 2.1 # Python versions in development .elif defined(FORCE_PYTHON_VERSION) @@ -364,6 +369,7 @@ PYTHON_REL!= ${PYTHON_CMD} -c 'import sys; h = "%x" % sys.hexversion; \ print h[0]+h[2]+h[4]' PYTHON_SUFFIX!= ${PYTHON_CMD} -c 'import sys; h = "%x" % sys.hexversion; \ print h[0]+h[2]' +PYTHON_VER!= ${PYTHON_CMD} -c 'import sys; print sys.version[:3]' .else check-makevars:: |