# $NetBSD: srcdist.mk,v 1.38 2019/06/05 13:44:17 sjmulder Exp $ .include "../../lang/python/pyversion.mk" .sinclude "${.CURDIR}/${PYPKGSRCDIR}/dist.mk" PYSUBDIR= ${DISTNAME} WRKSRC= ${WRKDIR}/${PYSUBDIR} .if defined(PYDISTUTILSPKG) # This is used for standard modules shipped with Python but build as # separate packages. . if ${PYVERSSUFFIX} == "3.5" || ${PYVERSSUFFIX} == "3.6" || ${PYVERSSUFFIX} == "3.7" EXTRACT_ELEMENTS+= ${PYSUBDIR}/Modules/clinic . endif # Standard modules depend on their own version BUILDLINK_API_DEPENDS.${PYPACKAGE}+= ${PYPACKAGE}>=${PY_DISTVERSION} BUILDLINK_ABI_DEPENDS.${PYPACKAGE}+= ${PYPACKAGE}>=${PY_DISTVERSION} python-std-patchsetup: ${SED} ${PY_SETUP_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} \ <${FILESDIR}/setup.py >${WRKSRC}/setup.py post-extract: python-std-patchsetup .endif