Skip to content

[3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) (GH-96038) - #96038

Merged
tiran merged 3 commits into
python:3.11from
tiran:backport-48174fa-3.11
Sep 13, 2022
Merged

[3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) (GH-96038)#96038
tiran merged 3 commits into
python:3.11from
tiran:backport-48174fa-3.11

Conversation

@tiran

@tirantiran commented Aug 17, 2022

Copy link
Copy Markdown
Member
  • On WASI ENOTCAPABLE is now mapped to PermissionError.
  • The errno modules exposes the new error number.
  • getpath.py now ignores PermissionError when it cannot open landmark
    files pybuilddir.txt and pyenv.cfg.
    (cherry picked from commit 48174fa)

- On WASI `ENOTCAPABLE` is now mapped to `PermissionError`.
- The `errno` modules exposes the new error number.
- `getpath.py` now ignores `PermissionError` when it cannot open landmark
files `pybuilddir.txt` and `pyenv.cfg`.
(cherry picked from commit 48174fa)
Co-authored-by: Christian Heimes <christian@python.org>
@tirantiran changed the title [3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034)[3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) (GH-96038)Sep 13, 2022
@tiran
tiran merged commit bc337a7 into python:3.11Sep 13, 2022
@tiran
tiran deleted the backport-48174fa-3.11 branch September 13, 2022 11:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tiran@bedevere-bot