Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/python.mk
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | |||||
PYTHON3_DEFAULT_VERSION= ${PYTHON_DEFAULT_VERSION} | PYTHON3_DEFAULT_VERSION= ${PYTHON_DEFAULT_VERSION} | ||||
.else | .else | ||||
PYTHON3_DEFAULT_VERSION?= python${PYTHON3_DEFAULT} | PYTHON3_DEFAULT_VERSION?= python${PYTHON3_DEFAULT} | ||||
.endif | .endif | ||||
.if ${_PYTHON_ARGS} == "2" | .if ${_PYTHON_ARGS} == "2" | ||||
_PYTHON_ARGS= ${PYTHON2_DEFAULT_VERSION:S/^python//} | _PYTHON_ARGS= ${PYTHON2_DEFAULT_VERSION:S/^python//} | ||||
_WANTS_META_PORT= 2 | _WANTS_META_PORT= 2 | ||||
DEV_WARNING+= "USES=python:2 is deprecated, use USES=python:2.7" | |||||
.elif ${_PYTHON_ARGS} == "3" | .elif ${_PYTHON_ARGS} == "3" | ||||
_PYTHON_ARGS= ${PYTHON3_DEFAULT_VERSION:S/^python//} | _PYTHON_ARGS= ${PYTHON3_DEFAULT_VERSION:S/^python//} | ||||
_WANTS_META_PORT= 3 | _WANTS_META_PORT= 3 | ||||
DEV_WARNING+= "USES=python:3 is deprecated, use USES=python:3.4+ or an appropriate version range" | |||||
.endif # ${_PYTHON_ARGS} == "2" | .endif # ${_PYTHON_ARGS} == "2" | ||||
.if defined(PYTHON_VERSION) | .if defined(PYTHON_VERSION) | ||||
# A port/user requests a specific python version for its dependencies via | # A port/user requests a specific python version for its dependencies via | ||||
# DEPENDS_ARGS, since it requires the specific python version itself. | # DEPENDS_ARGS, since it requires the specific python version itself. | ||||
# Several things can happen now: | # Several things can happen now: | ||||
# a) the dependency supports the requested version -> everything's fine | # a) the dependency supports the requested version -> everything's fine | ||||
# b) the dependency does not support the requested version | # b) the dependency does not support the requested version | ||||
▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines |