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:
parent
f04e702653
commit
b7554f3b92
|
@ -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 = \
|
||||
|
|
Loading…
Reference in New Issue