Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-13 Thread Glenn Stroz via lists.openembedded.org
Jumping in to note that the python3native patch mentioned above worked for us (removing the env var). We did not test any target packages. -Glenn On Fri, Nov 13, 2020 at 5:45 AM Alexander Kanavin wrote: > I think I have to go back to my original patch. Using a wrapper for native > python is pr

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-13 Thread Alexander Kanavin
I think I have to go back to my original patch. Using a wrapper for native python is problematic for two reasons: - thwarts target python build as target python needs native python, but *without* the environment variable set - adds an unconditional dependency on target python to a few items, even i

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-12 Thread Alexander Kanavin
Right, I think this is better too. The only problematic bit is that situations where target _sysconfigdata is needed can produce really unhelpful errors (e.g. meson hides this behind a generic 'python is not working' message), and it is not obvious that these errors can be resolved by adding a targ

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-12 Thread Martin Jansa
Do you remember kergoth's take on this? From "[RFC PATCH] devtool: remove _PYTHON_SYSCONFIGDATA_NAME to fix do_unpack" thread and https://lists.yoctoproject.org/g/yocto/topic/74637733#49571 https://github.com/openembedded/openembedded-core/compare/master...kergoth:python-sysconfig I think wrapper

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-12 Thread Alexander Kanavin
Thanks - I have a preliminary fix here (needs thorough testing): http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=akanavin/package-version-updates&id=d6b6a6f67cc967c0ead6dbab3c95435b7ca85246 Alex On Thu, 12 Nov 2020 at 19:46, Glenn Stroz wrote: > Hi Alex, > > We have a custom fe

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-12 Thread Glenn Stroz via lists.openembedded.org
Hi Alex, We have a custom fetcher implemented as a bbclass that calls out to a python script. That is why we see these issues with native. Here's a sample bbclass and recipe that reproduces the issue: impfail.bbclass ``` inherit python3native do_unpack[noexec] = "1" do_patch[noexec] = "1" do_in

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-12 Thread Alexander Kanavin
A quick fix may be to add a target python3 dependency to your recipe, yes ugly, but I can't figure out how to provide target python configuration to native python used in the context of building target recipes otherwise. Alex On Thu, 12 Nov 2020 at 10:49, Alexander Kanavin wrote: > On Thu, 12

Re: [OE-core] python3-native sysconfig failing to load in dunfell

2020-11-12 Thread Alexander Kanavin
On Thu, 12 Nov 2020 at 02:23, Glenn Stroz via lists.openembedded.org wrote: > We've been upgrading our work to Dunfell and have encountered an issue > with python3-native. > > One of our python3-native scripts uses pydoc and that in turn eventually > pulls in python's sysconfig. However, this is

[OE-core] python3-native sysconfig failing to load in dunfell

2020-11-11 Thread Glenn Stroz via lists.openembedded.org
Hi all, We've been upgrading our work to Dunfell and have encountered an issue with python3-native. One of our python3-native scripts uses pydoc and that in turn eventually pulls in python's sysconfig. However, this is failing to import with the following stack trace: ``` import pydoc File