warn if MODPY_PYBUILD is used and not set to setuptools_scm when the

port appears to need setuptools_scm.
This commit is contained in:
sthen 2022-11-25 16:33:15 +00:00
parent f04e702653
commit b7554f3b92
1 changed files with 7 additions and 0 deletions

View File

@ -320,6 +320,13 @@ MODPYTHON_pre-configure += cd ${WRKSRC} && ${MODPY_BIN_ADJ} ${MODPY_ADJ_FILES}
.endif
.if ${MODPY_PYBUILD:L} != no
. if ! ${MODPY_PYBUILD:Msetuptools_scm}
_MODPY_PRE_BUILD_STEPS += ; if [ -e ${WRKSRC}/pyproject.toml ]; then \
grep -q '^requires.*setuptools_scm' ${WRKSRC}/pyproject.toml && \
echo && sleep 1 && \
echo "*** Port appears to require setuptools_scm" && sleep 2; \
fi
. endif
MODPY_BUILD_TARGET = ${_MODPY_PRE_BUILD_STEPS}; \
${_MODPY_RUNBIN} -sBm build -w --no-isolation
MODPY_INSTALL_TARGET = \