[OE-core] [PATCH] meta/classes/meson.bbclass: Add inherit setuptools3

Anibal Limon anibal.limon at linaro.org
Wed Jan 8 23:41:41 UTC 2020


On Wed, 18 Dec 2019 at 14:31, Ross Burton <ross.burton at intel.com> wrote:

> On 03/12/2019 22:06, Aníbal Limón wrote:
> > Fixes,
> >
> > ...
> > | Program python3 found: YES
> (/home/anibal.limon/linaro/oe-rpb-master/build-410c/tmp-rpb-glibc/work/aarch64-linaro-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)
> > |
> > | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->
> ['/home/anibal.limon/linaro/oe-rpb-master/build-410c/tmp-rpb-glibc/work/aarch64-linaro-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3']>
> is not a valid python or it is missing setuptools
> > |
> > | A full log can be found at
> /home/anibal.limon/linaro/oe-rpb-master/build-410c/tmp-rpb-glibc/work/aarch64-linaro-linux/waffle/1.6.0-r0/build/meson-logs/meson-log.txt
> > | WARNING: exit code 1 from a shell command.
>
> Going back to this...
>
> Without this patch I get a different result:
>
> Program python3 found: YES
>
> (/data/poky-tmp/master/work/corei7-64-poky-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)
> Run-time dependency threads found: YES
> [ continues fine ]
>
> So what is the meson-log.txt saying?
>

Hi,

I'm debugging this issue again and found the root cause that is missing
_sysconfigdata module, in python3-native.bbclass is set
(_PYTHON_SYSCONFIGDATA_NAME) and fails if no python3 isn't available so it
relais on python3 target being added.

Reviewing python3 recipe _sysconfig_data thera are two possible fixes,

- Copy _sysconfig_data from /usr/lib/python-sysconfig to /usr/lib/pythonVER
(I will go for this one)

...
+
+do_install_append_class-native() {
+       cp ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py
${D}/${libdir}/python${PYTHON_MAJMIN}
+}
+
...

- Find right _sysconfig_data in python3native.bbclass because the library
name is based on os-machine.

Regards,
Anibal

>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20200108/b77af25b/attachment.html>


More information about the Openembedded-core mailing list