Repository navigation
Conversation
zaniebot
force-pushed
the
zb/getpath-library-main-20261023
branch
from
October 23, 2026 22:50
1f9286c to
befae08
Compare
zaniebot
force-pushed
the
zb/getpath-library-main-20261023
branch
from
October 23, 2026 22:57
befae08 to
ba6fbd2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An older version of BitBake in Yocto’s Poky distribution launched its server with
os.execl(sys.executable, "bitbake-server", ...). With Python installed byuv, the reduced example in astral-sh/python-build-standalone#713 fell back to the compiled-in/installprefix and failed to importencodings. A matching system Python could mask the failure by supplying its own standard library. BitBake changed its launcher in 2023 to passsys.executableasargv[0]. PBS diagnosis · BitBake launcher fixOn a POSIX shared build with
libpythoninprefix/lib, the library-based lookup checksprefix/lib/lib/pythonX.Y/os.pyand missesprefix/lib/pythonX.Y/os.py. Search the parent directories of an absolutelibpythonpath for the unpacked standard library, as startup already does for the ZIP file. This addresses the shared-build case tracked in astral-sh/python-build-standalone#909.A loader can report a relative filename, and an embedding application can change directories before initializing Python. Keep the adjacent lookup for relative paths because searching upward from the new working directory could select another installation’s standard library.