View | Details | Raw Unified | Return to bug 243185 | Differences between
and this patch

Collapse All | Expand All

(-)b/Mk/Uses/python.mk (-4 lines)
Lines 452-475 PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} Link Here
452
# - If using a version restriction (USES=python:3.5+), from the first
452
# - If using a version restriction (USES=python:3.5+), from the first
453
#   acceptable default Python version.
453
#   acceptable default Python version.
454
# - From PYTHON_DEFAULT
454
# - From PYTHON_DEFAULT
455
PY_FLAVOR=	py${_PYTHON_VERSION:S/.//}
455
PY_FLAVOR=	py${_PYTHON_VERSION:S/.//}
456
456
457
# Pass PYTHON_VERSION down the dependency chain. This ensures that
457
# Pass PYTHON_VERSION down the dependency chain. This ensures that
458
# port A -> B -> C all will use the same python version and do not
458
# port A -> B -> C all will use the same python version and do not
459
# try to find a different one, if the passed version fits into
459
# try to find a different one, if the passed version fits into
460
# the supported version range.
460
# the supported version range.
461
PYTHON_VERSION?=	python${_PYTHON_VERSION}
461
PYTHON_VERSION?=	python${_PYTHON_VERSION}
462
.if !defined(PYTHON_NO_DEPENDS) && \
463
    ${PYTHON_VERSION} != python${PYTHON_DEFAULT}
464
DEPENDS_ARGS+=		PYTHON_VERSION=${PYTHON_VERSION}
465
.endif
466
462
467
# NOTE:
463
# NOTE:
468
#
464
#
469
#  PYTHON_VERSION will hold whatever is passed down the dependency chain.
465
#  PYTHON_VERSION will hold whatever is passed down the dependency chain.
470
#  If a user runs `make PYTHON_VERSION=python3.5, PYTHON_VERSION will be
466
#  If a user runs `make PYTHON_VERSION=python3.5, PYTHON_VERSION will be
471
#  set to 'python3.5'. A port however may require a different version,
467
#  set to 'python3.5'. A port however may require a different version,
472
#  which is stored (above) in _PYTHON_VERSION.
468
#  which is stored (above) in _PYTHON_VERSION.
473
#  Every python bit below hence should use python${_PYTHON_VERSION}, since
469
#  Every python bit below hence should use python${_PYTHON_VERSION}, since
474
#  this is the value, the _port_ requires
470
#  this is the value, the _port_ requires
475
#
471
#

Return to bug 243185