distutils has been removed from upcoming python 3.12, so I don't think
anyone would be particularly interested in what that class is doing :)
The concern should be what are you going to do with all these recipes
when you will be transitioning to a version of yocto without
distutils.

Alex

On Wed, 11 Jan 2023 at 12:48, Alexandru N. Onea <[email protected]> wrote:
>
> 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 (#58965): https://lists.yoctoproject.org/g/yocto/message/58965
Mute This Topic: https://lists.yoctoproject.org/mt/96198112/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to