]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
python3: Ensure stale empty python module directories don't break the build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 May 2022 16:05:44 +0000 (17:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 May 2022 17:37:01 +0000 (18:37 +0100)
commite5944a38db513e033c3a3e9313267055f7254be7
tree457eeae459b8f47ba2b6adc533b732d92458db05
parentae9e6249ded8fc063d6333231c391cfa2d594567
python3: Ensure stale empty python module directories don't break the build

There are two issues inside importlib. Firstly, the modules are accessed in
on disk order. This means behaviour seen on one system might not reproduce
on another and is a real headache.

Secondly, empty directories left behind by previous modules might be looked
at. This has caused a long string of different issues for us.

As a result, patch this to a behaviour which works for us. Upstream discussion
can follow later, this is breaking builds for too many people to leave unpatched.

[YOCTO #14816]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/deterministic_imports.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.10.4.bb