You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
venv with Windows Store base does not have correct sys.path #117786
Appears to be new in 3.13.0a6, as I've been using it with a5 and it's only after updating that I noticed.
Basically, the venv's prefix and site-packages directories are not present in sys.path when the base interpreter is from a Store install, and it has the user site. I need to investigate further to figure out exactly why.
Test code:
> python3 -m venv testenv --without-pip
> testenv\Scripts\activate
> python -m site
# expect "$PWD\testenv\Scripts\Lib\site-packages" in list
Oh right, I did the venvlauncher refactoring for this alpha, so the breakage is 100% my fault 😆
Part of that change was to stop smuggling __PYVENV_LAUNCHER__, but also to stop rewriting argv[0]. Those two should have cancelled each other out, but I guess with the Store packaging it doesn't.
Activity
zooba commentedon Apr 11, 2024
Oh right, I did the venvlauncher refactoring for this alpha, so the breakage is 100% my fault 😆
Part of that change was to stop smuggling
__PYVENV_LAUNCHER__, but also to stop rewritingargv[0]. Those two should have cancelled each other out, but I guess with the Store packaging it doesn't.pythongh-117786: Fix venv created from Windows Store install by resto…
Merge remote-tracking branch 'upstream/main' into pythongh-117786
Merge branch 'main' into pythongh-117786
gh-117786: Fix venv created from Windows Store install by restoring _…