Hello, community!
While writing some python-based recipes using setuptools3 I have noticed
that ${datadir} is always installed in the staging area even though there
is no content under it. This causes QA issues. I found out that the
distutils bbclass contains the following line which causes this behavior:
DISTUTILS_INSTALL_ARGS ?= "--root=${D} \
--prefix=${prefix} \
--install-lib=${PYTHON_SITEPACKAGES_DIR} \
*--install-data=${datadir}*"
Is there a reason for installing ${datadir} always, regardless of what the
build system specifies either in setup.py or in do_install[_append]?
So far my workaround is to remove this flag from DISTUTILS_INSTALL_ARGS. I
did it first on a per-recipe basis and now I am thinking of doing it
globally by overriding the distuitls bbclass with my own version that
requires the original and then removes the flag. Are there any concerns
that I should be aware of?
Best regards,
Alexandru N. Onea
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58964): https://lists.yoctoproject.org/g/yocto/message/58964
Mute This Topic: https://lists.yoctoproject.org/mt/96198112/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-