Print some text to show in the log when generating a minimal setup.py
for setuptools ports with no distributed setup.py file; this suggests that they probably ought to use MODPY_PEP517 instead so it's helpful to have this show up in build logs.
This commit is contained in:
parent
c37d777c9d
commit
cadb24e98d
@ -182,10 +182,11 @@ MODPY_SETUPUTILS = Yes
|
||||
TEST_TARGET ?= test
|
||||
_MODPY_USERBASE =
|
||||
_MODPY_PRE_BUILD_STEPS += ;[ -e ${WRKSRC}/${MODPY_SETUP} ] || \
|
||||
( \
|
||||
echo '\# generated by python.port.mk'; \
|
||||
echo 'from setuptools import setup; setup()' \
|
||||
) > ${WRKSRC}/${MODPY_SETUP}
|
||||
( printf '%s\n%s\n' \
|
||||
'\# generated by python.port.mk' \
|
||||
'from setuptools import setup; setup()' \
|
||||
> ${WRKSRC}/${MODPY_SETUP}; \
|
||||
echo '*** generating minimal setup.py')
|
||||
_MODPY_PRE_BUILD_STEPS += ;${MODPY_CMD} egg_info || true
|
||||
# Setuptools opportunistically picks up plugins. If it picks one up that
|
||||
# uses finalize_distribution_options (usually setuptools_scm), junking
|
||||
|
Loading…
x
Reference in New Issue
Block a user