Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.11 on Windows prioritises registry paths over build directory #101543

Closed
zooba opened this issue Feb 3, 2023 · 1 comment
Closed

Python 3.11 on Windows prioritises registry paths over build directory #101543

zooba opened this issue Feb 3, 2023 · 1 comment
Assignees
Labels
3.11 bug and security fixes 3.12 new features, bug and security fixes needs backport to 3.11 bug and security fixes OS-windows

Comments

@zooba
Copy link
Member

zooba commented Feb 3, 2023

If you have Python 3.11 installed by the EXE installer, and then build from source and run it from the build directory, it will detect and use the installed stdlib rather than its own.

I believe this is a regression since 3.11.1, so it hasn't shipped yet. But since it only matters in a build directory, that doesn't really matter anyway.

Linked PRs

@zooba zooba added OS-windows 3.11 bug and security fixes 3.12 new features, bug and security fixes needs backport to 3.11 bug and security fixes labels Feb 3, 2023
@zooba zooba self-assigned this Feb 3, 2023
@zooba
Copy link
Member Author

zooba commented Feb 3, 2023

Correction, it's not a build directory, it's a normal layout. So if we've already located the stdlib, we shouldn't be adding the root path in the registry.

zooba added a commit to zooba/cpython that referenced this issue Feb 3, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 6, 2023
…b can't be found (pythonGH-101544)

(cherry picked from commit 7a25310)

Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington added a commit that referenced this issue Feb 6, 2023
…t be found (GH-101544)

(cherry picked from commit 7a25310)

Co-authored-by: Steve Dower <steve.dower@python.org>
@zooba zooba closed this as completed Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 bug and security fixes 3.12 new features, bug and security fixes needs backport to 3.11 bug and security fixes OS-windows
Projects
None yet
Development

No branches or pull requests

1 participant