Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/python.mk
| Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | |||||
| # PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} | # PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} | ||||
| # PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} | # PYTHON_LIBDIR=${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} | ||||
| # PYTHON_PLATFORM=${PYTHON_PLATFORM} | # PYTHON_PLATFORM=${PYTHON_PLATFORM} | ||||
| # PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} | # PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} | ||||
| # PYTHON_VERSION=${PYTHON_VERSION} | # PYTHON_VERSION=${PYTHON_VERSION} | ||||
| # PYTHON_VER=${PYTHON_VER} | # PYTHON_VER=${PYTHON_VER} | ||||
| # | # | ||||
| # | # | ||||
| # Deprecated variables, which exist for compatibility and will be removed | # Deprecated variables, which exist for compatibility and will be removed | ||||
antoine: This comment can go? | |||||
mvaUnsubmitted Not Done Inline ActionsNo. We still have some deprecated ones. mva: No. We still have some deprecated ones. | |||||
| # soon: | # soon: | ||||
| # | # | ||||
| # USE_PYDISTUTILS - Deprecated, use USE_PYTHON=distutils instead | |||||
| # | |||||
| # PYDISTUTILS_AUTOPLIST | |||||
| # - Deprecated, use USE_PYTHON=autoplist instead | |||||
| # | |||||
| # PYTHON_PY3K_PLIST_HACK | |||||
| # - Deprecated, use USE_PYTHON=py3kplist instead | |||||
| # | |||||
| # PYDISTUTILS_NOEGGINFO | |||||
| # - Deprecated, use USE_PYTHON=noegginfo instead | |||||
| # | |||||
| # PYTHON_DEFAULT_VERSION | # PYTHON_DEFAULT_VERSION | ||||
| # PYTHON2_DEFAULT_VERSION | # PYTHON2_DEFAULT_VERSION | ||||
| # PYTHON3_DEFAULT_VERSION | # PYTHON3_DEFAULT_VERSION | ||||
| # - Deprecated, use PYTHON[2,3]_DEFAULT instead, | # - Deprecated, use PYTHON[2,3]_DEFAULT instead, | ||||
| # see bsd.default-versions.mk | # see bsd.default-versions.mk | ||||
| # | # | ||||
| # PYTHON_PKGNAMESUFFIX | # PYTHON_PKGNAMESUFFIX | ||||
| # - Deprecated, use PYTHON_PKGNAMEPREFIX instead | # - Deprecated, use PYTHON_PKGNAMEPREFIX instead | ||||
| # default: -py${PYTHON_SUFFIX} | # default: -py${PYTHON_SUFFIX} | ||||
| # | # | ||||
| # PYTHON_CONCURRENT_INSTALL | |||||
| # - Deprecated, use USE_PYTHON=concurrent instead | |||||
| # | |||||
| # USE_PYTHON_PREFIX - Deprecated, use USE_PYTHON=pythonprefix instead | |||||
| # | |||||
| # PYDISTUTILS_INSTALLNOSINGLE | # PYDISTUTILS_INSTALLNOSINGLE | ||||
| # - Deprecated without replacement | # - Deprecated without replacement | ||||
| # | # | ||||
| # MAINTAINER: python@FreeBSD.org | # MAINTAINER: python@FreeBSD.org | ||||
| .if !defined(_INCLUDE_USES_PYTHON_MK) | .if !defined(_INCLUDE_USES_PYTHON_MK) | ||||
| _INCLUDE_USES_PYTHON_MK= yes | _INCLUDE_USES_PYTHON_MK= yes | ||||
| # What Python version and what Python interpreters are currently supported? | # What Python version and what Python interpreters are currently supported? | ||||
| _PYTHON_VERSIONS= 2.7 3.4 3.3 3.2 # preferred first | _PYTHON_VERSIONS= 2.7 3.4 3.3 3.2 # preferred first | ||||
| _PYTHON_PORTBRANCH= 2.7 # ${_PYTHON_VERSIONS:[1]} | _PYTHON_PORTBRANCH= 2.7 # ${_PYTHON_VERSIONS:[1]} | ||||
| _PYTHON_BASECMD= ${LOCALBASE}/bin/python | _PYTHON_BASECMD= ${LOCALBASE}/bin/python | ||||
| _PYTHON_RELPORTDIR= ${PORTSDIR}/lang/python | _PYTHON_RELPORTDIR= ${PORTSDIR}/lang/python | ||||
| # COMPAT KNOBS, remove them, once the tree is cleaned | |||||
| .undef _PY_COMPAT_OLD | |||||
| # We will reuse USE_PYTHON with a different meaning, so make sure that, while | |||||
| # we are in the transition phase from USE_PYTHON -> USES=python, it is mapped | |||||
| # and reassigned correctly | |||||
| .if defined(USE_PYTHON_BUILD) || defined(USE_PYTHON_RUN) | |||||
| # old style | |||||
| _PY_COMPAT_OLD= yes | |||||
| .elif defined(USE_PYTHON) | |||||
| .if ${USE_PYTHON} == "yes" | |||||
| # old style | |||||
| _PY_COMPAT_OLD= yes | |||||
| .elif ${USE_PYTHON:C/[-0-9.+]*//} == "" | |||||
| # old style X.Y, X.Y+, X.Y-, -X.Y, X.Y-Z.A | |||||
| _PY_COMPAT_OLD= yes | |||||
| .endif # ${USE_PYTHON} == "yes" ... | |||||
| .endif # defined(USE_PYTHON_BUILD) || defined(USE_PYTHON_RUN) | |||||
| .if defined(_PY_COMPAT_OLD) | |||||
| .if defined(USE_PYTHON) | |||||
| .if ${USE_PYTHON} != "yes" | |||||
| python_ARGS:= ${USE_PYTHON} | |||||
| .endif | |||||
| .else | |||||
| .if defined(USE_PYTHON_BUILD) | |||||
| .if ${USE_PYTHON_BUILD} != "yes" | |||||
| python_ARGS= ${USE_PYTHON_BUILD},build | |||||
| .else | |||||
| python_ARGS= build | |||||
| .endif | |||||
| .endif # defined(USE_PYTHON_BUILD) | |||||
| .if defined(USE_PYTHON_RUN) | |||||
| .if ${USE_PYTHON_RUN} != "yes" | |||||
| python_ARGS+= ${USE_PYTHON_RUN},run | |||||
| .else | |||||
| python_ARGS+= run | |||||
| .endif | |||||
| .endif # defined(USE_PYTHON_RUN) | |||||
| .endif # defined(USE_PYTHON) | |||||
| # Everything passed to python_ARGS, undef USE_PYTHON, since we will reuse | |||||
| # it with a different meaning below | |||||
| .undef USE_PYTHON | |||||
| .endif # defined(_PY_COMPAT_OLD) | |||||
| .undef _PY_COMPAT_OLD | |||||
| .if !defined(USE_PYTHON) | |||||
| USE_PYTHON= | |||||
| .if defined(USE_PYDISTUTILS) | |||||
| USE_PYTHON+= distutils | |||||
| .endif | |||||
| .if defined(PYDISTUTILS_AUTOPLIST) | |||||
| USE_PYTHON+= autoplist | |||||
| .endif | |||||
| .if defined(PYTHON_PY3K_PLIST_HACK) | |||||
| USE_PYTHON+= py3kplist | |||||
| .endif | |||||
| .if defined(PYTHON_CONCURRENT_INSTALL) | |||||
| USE_PYTHON+= concurrent | |||||
| .endif | |||||
| .if defined(USE_PYTHON_PREFIX) | |||||
| USE_PYTHON+= pythonprefix | |||||
| .endif | |||||
| .if defined(PYDISTUTILS_NOEGGINFO) | |||||
| USE_PYTHON+= noegginfo | |||||
| .endif | |||||
| .endif # !defined(USE_PYTHON) | |||||
| # COMPAT KNOBS END | |||||
| # Make each individual feature available as _PYTHON_FEATURE_<FEATURENAME> | # Make each individual feature available as _PYTHON_FEATURE_<FEATURENAME> | ||||
| .for var in ${USE_PYTHON} | .for var in ${USE_PYTHON} | ||||
| _PYTHON_FEATURE_${var:tu}= yes | _PYTHON_FEATURE_${var:tu}= yes | ||||
| .endfor | .endfor | ||||
| # Make sure that no dependency or some other environment variable | # Make sure that no dependency or some other environment variable | ||||
| # pollutes the build/run dependency detection | # pollutes the build/run dependency detection | ||||
| ▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines | |||||
This comment can go?