Files
ports/lang/python/python.port.mk
T
sthen 1d2a94aab9 split python.port.mk into simpler files for 2.7 (which doesn't need
MODPY_PYBUILD etc) and 3 (which doesn't remove all that much yet, but
when the remaining py3 MODPY_SETUPTOOLS are gone we'll be able to
remove the confusing conditionals around that)

been through enough of a bulk for confidence
2025-08-21 10:43:06 +00:00

12 lines
400 B
Makefile

MODPY_DEFAULT_VERSION_2 = 2.7
MODPY_DEFAULT_VERSION_3 = 3.12
MODPY_VERSION ?= ${MODPY_DEFAULT_VERSION_3}
.if ${MODPY_VERSION} == ${MODPY_DEFAULT_VERSION_3}
. include "${PORTSDIR}/lang/python/3/python.port.mk"
.elif ${MODPY_VERSION} == ${MODPY_DEFAULT_VERSION_2}
. include "${PORTSDIR}/lang/python/2.7/python.port.mk"
.else
ERRORS += "Fatal: MODPY_VERSION ${MODPY_VERSION} is not supported"
.endif