Lines 18-24
Link Here
|
18 |
# USES=python:3.3+ # Use Python 3.3 or newer |
18 |
# USES=python:3.3+ # Use Python 3.3 or newer |
19 |
# USES=python:3.3-3.4 # Use Python 3.3 or 3.4 |
19 |
# USES=python:3.3-3.4 # Use Python 3.3 or 3.4 |
20 |
# USES=python:-3.3 # Use any Python up to 3.3 |
20 |
# USES=python:-3.3 # Use any Python up to 3.3 |
21 |
# USES=python:2 # Use the Python 2 meta port |
|
|
22 |
# USES=python # Use the set default Python |
21 |
# USES=python # Use the set default Python |
23 |
# # version |
22 |
# # version |
24 |
# |
23 |
# |
Lines 306-322
Link Here
|
306 |
WARNING+= "PYTHON_DEFAULT must be a version present in PYTHON2_DEFAULT or PYTHON3_DEFAULT, if you want more Python flavors, set BUILD_ALL_PYTHON_FLAVORS in your make.conf" |
305 |
WARNING+= "PYTHON_DEFAULT must be a version present in PYTHON2_DEFAULT or PYTHON3_DEFAULT, if you want more Python flavors, set BUILD_ALL_PYTHON_FLAVORS in your make.conf" |
307 |
.endif |
306 |
.endif |
308 |
|
307 |
|
309 |
# Keep this before the FLAVOR selection to get the meta port dependency. |
|
|
310 |
.if ${_PYTHON_ARGS} == "2" |
311 |
_PYTHON_ARGS= ${PYTHON2_DEFAULT} |
312 |
_WANTS_META_PORT= 2 |
313 |
DEV_WARNING+= "USES=python:2 is deprecated, use USES=python:2.7" |
314 |
.elif ${_PYTHON_ARGS} == "3" |
315 |
_PYTHON_ARGS= ${PYTHON3_DEFAULT} |
316 |
_WANTS_META_PORT= 3 |
317 |
DEV_WARNING+= "USES=python:3 is deprecated, use USES=python:3.4+ or an appropriate version range" |
318 |
.endif # ${_PYTHON_ARGS} == "2" |
319 |
|
320 |
.if defined(PYTHON_VERSION) |
308 |
.if defined(PYTHON_VERSION) |
321 |
# A port/user requests a specific python version for its dependencies via |
309 |
# A port/user requests a specific python version for its dependencies via |
322 |
# DEPENDS_ARGS, since it requires the specific python version itself. |
310 |
# DEPENDS_ARGS, since it requires the specific python version itself. |
Lines 675-683
Link Here
|
675 |
.for _stage in PATCH BUILD RUN TEST |
663 |
.for _stage in PATCH BUILD RUN TEST |
676 |
. if defined(_PYTHON_${_stage}_DEP) |
664 |
. if defined(_PYTHON_${_stage}_DEP) |
677 |
${_stage}_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR} |
665 |
${_stage}_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR} |
678 |
. if defined(_WANTS_META_PORT) |
|
|
679 |
${_stage}_DEPENDS+= python${_WANTS_META_PORT}:${_PYTHON_RELPORTDIR}${_WANTS_META_PORT} |
680 |
. endif |
681 |
. endif |
666 |
. endif |
682 |
.endfor |
667 |
.endfor |
683 |
|
668 |
|