When a port needs a python version in a specific range that current python

doesn't satisfy, prefer PYTHON2_DEFAULT or PYTHON3_DEFAULT over other
versions.
Previously, python34 was choosen despite python33 being the default python3.

Silence from:	python
With hat:	portmgr
This commit is contained in:
Antoine Brodin 2014-05-06 17:43:11 +00:00
parent b29346c9e5
commit c3dc6f69e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353115

View File

@ -289,7 +289,7 @@ IGNORE= needs Python ${_PYTHON_VERSION_NONSUPPORTED}.\
But you specified ${_PYTHON_VERSION}
.else
.undef _PYTHON_VERSION
.for ver in ${_PYTHON_ALLBRANCHES}
.for ver in ${PYTHON2_DEFAULT} ${PYTHON3_DEFAULT} ${_PYTHON_ALLBRANCHES}
__VER= ${ver}
.if !defined(_PYTHON_VERSION) && \
!(!empty(_PYTHON_VERSION_MINIMUM) && ( \