René's URL Explorer Experiment


Title: bpo-34977: Use venv redirector instead of original python.exe on Windows by zooba · Pull Request #11029 · python/cpython · GitHub

Open Graph Title: bpo-34977: Use venv redirector instead of original python.exe on Windows by zooba · Pull Request #11029 · python/cpython

X Title: bpo-34977: Use venv redirector instead of original python.exe on Windows by zooba · Pull Request #11029 · python/cpython

Description: Previously on Windows we would copy enough of Python's binaries into a virtual environment that it could run independently from the original install. This has two problems: the first is that updating your main Python install would give you incompatible binaries for the standard library now in use, and the second is that when the main Python install needs to be loaded in a special context, the copied binary would not be capable of configuring this (for example, when the main install has come from an app package). This change creates a slightly modified version of py.exe that redirects based on a pyvenv.cfg file and copies only that python.exe instead of the real one. As a result, the base Python install can be safely upgraded without breaking all venvs, and venv creation is significantly faster. https://bugs.python.org/issue34977

Open Graph Description: Previously on Windows we would copy enough of Python's binaries into a virtual environment that it could run independently from the original install. This has two problems: the first is that up...

X Description: Previously on Windows we would copy enough of Python's binaries into a virtual environment that it could run independently from the original install. This has two problems: the first is tha...

Opengraph URL: https://github.com/python/cpython/pull/11029

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:78712237-ec3d-bfcd-fe8e-39bca7bf713b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB560:111866:1BAE311:246F0AF:6A51D7A6
html-safe-noncea5433abcb1343c1feda44598e6874729b917fce7a1d9f0a223a3890e8205d8c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTYwOjExMTg2NjoxQkFFMzExOjI0NkYwQUY6NkE1MUQ3QTYiLCJ2aXNpdG9yX2lkIjoiNjQ4NDExNzg4ODYwMzUzNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceb7692a8aab4fb77945c77852b8be1305b1a9a456e5a8775c3cd80c002fcb449
hovercard-subject-tagpull_request:236915120
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/11029/files
twitter:imagehttps://avatars.githubusercontent.com/u/1693688?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1693688?s=400&v=4
og:image:altPreviously on Windows we would copy enough of Python's binaries into a virtual environment that it could run independently from the original install. This has two problems: the first is that up...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/11029/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F11029%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F11029%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/11029/files
Reloadhttps://github.com/python/cpython/pull/11029/files
Reloadhttps://github.com/python/cpython/pull/11029/files
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
zoobahttps://github.com/zooba
python:masterhttps://github.com/python/cpython/tree/master
zooba:venvlauncherhttps://github.com/zooba/cpython/tree/venvlauncher
Conversation 22 https://github.com/python/cpython/pull/11029
Commits 4 https://github.com/python/cpython/pull/11029/commits
Checks 0 https://github.com/python/cpython/pull/11029/checks
Files changed https://github.com/python/cpython/pull/11029/files
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
bpo-34977: Use venv redirector instead of original python.exe on Windows https://github.com/python/cpython/pull/11029/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/11029/files
b2b5dcb bpo-34977: Use venv redirector instead of original python.exe on Windows zooba Dec 7, 2018 https://github.com/python/cpython/pull/11029/commits/b2b5dcbe4072efd15e3cb4c5f01c8dc5d803c914
1d8db79 Missed splitting out getpathp.c change zooba Dec 7, 2018 https://github.com/python/cpython/pull/11029/commits/1d8db798e3f5204d0a3bda5021b37b7c6cfd84b1
91f74b1 Add NEWS entry zooba Dec 7, 2018 https://github.com/python/cpython/pull/11029/commits/91f74b14a68d29f93546f7385d201c664c40e136
b8b19f7 Updates documentation zooba Dec 7, 2018 https://github.com/python/cpython/pull/11029/commits/b8b19f73c0d665dde20e1256bba15398ca9b4c7e
Clear filters https://github.com/python/cpython/pull/11029/files
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
venv.rst https://github.com/python/cpython/pull/11029/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
3.7.rst https://github.com/python/cpython/pull/11029/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
test_venv.py https://github.com/python/cpython/pull/11029/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
__init__.py https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
2018-12-07-10-00-38.bpo-34977.agQJbD.rst https://github.com/python/cpython/pull/11029/files#diff-aa870492383ea7678f4af51c9d659555ef31f87171a734744925114f41428610
getpathp.c https://github.com/python/cpython/pull/11029/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
launcher.c https://github.com/python/cpython/pull/11029/files#diff-e2ab17b255bd58eedd164c4013e70168ee5441e9a93ca15a09baa2d6d912d9c0
pcbuild.proj https://github.com/python/cpython/pull/11029/files#diff-36143ac3d62d4f210bf836dcc3104c7474562bca5b02a18aa5d285b4a8373c6e
venvlauncher.vcxproj https://github.com/python/cpython/pull/11029/files#diff-e45476f5226825e7e572b7afaa938a7a60021658946ed64be910ed8023ae9317
venvwlauncher.vcxproj https://github.com/python/cpython/pull/11029/files#diff-3aee4d643bf88a2c3612d257c7045e6aed1ebe773571fca9e8df232a91fe4b24
lib_files.wxs https://github.com/python/cpython/pull/11029/files#diff-26115511cc004fd83fde0fa4e7fe691a99ccdd351aa7b7ec2a8079444e962cce
Doc/library/venv.rsthttps://github.com/python/cpython/pull/11029/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
View file https://github.com/zooba/cpython/blob/b8b19f73c0d665dde20e1256bba15398ca9b4c7e/Doc/library/venv.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11029/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11029/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
https://github.com/python/cpython/pull/11029/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
https://github.com/python/cpython/pull/11029/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
https://github.com/python/cpython/pull/11029/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
Doc/whatsnew/3.7.rsthttps://github.com/python/cpython/pull/11029/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
View file https://github.com/zooba/cpython/blob/b8b19f73c0d665dde20e1256bba15398ca9b4c7e/Doc/whatsnew/3.7.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11029/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11029/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
Lib/test/test_venv.pyhttps://github.com/python/cpython/pull/11029/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
View file https://github.com/zooba/cpython/blob/b8b19f73c0d665dde20e1256bba15398ca9b4c7e/Lib/test/test_venv.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11029/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11029/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
https://github.com/python/cpython/pull/11029/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
Lib/venv/__init__.pyhttps://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
View file https://github.com/zooba/cpython/blob/b8b19f73c0d665dde20e1256bba15398ca9b4c7e/Lib/venv/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11029/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
vstinnerhttps://github.com/vstinner
Dec 7, 2018https://github.com/python/cpython/pull/11029/files#r239873119
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
zoobahttps://github.com/zooba
Dec 7, 2018https://github.com/python/cpython/pull/11029/files#r239884487
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11029/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
Misc/NEWS.d/next/Windows/2018-12-07-10-00-38.bpo-34977.agQJbD.rsthttps://github.com/python/cpython/pull/11029/files#diff-aa870492383ea7678f4af51c9d659555ef31f87171a734744925114f41428610
View file https://github.com/zooba/cpython/blob/b8b19f73c0d665dde20e1256bba15398ca9b4c7e/Misc/NEWS.d/next/Windows/2018-12-07-10-00-38.bpo-34977.agQJbD.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11029/{{ revealButtonHref }}
vstinnerhttps://github.com/vstinner
Dec 7, 2018https://github.com/python/cpython/pull/11029/files#r239896009
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://docs.python.org/dev/whatsnew/3.7.html#notable-changes-in-python-3-7-1https://docs.python.org/dev/whatsnew/3.7.html#notable-changes-in-python-3-7-1
https://docs.python.org/dev/library/venv.htmlhttps://docs.python.org/dev/library/venv.html
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
zoobahttps://github.com/zooba
Dec 7, 2018https://github.com/python/cpython/pull/11029/files#r239897669
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
zoobahttps://github.com/zooba
Dec 7, 2018https://github.com/python/cpython/pull/11029/files#r239900037
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
PC/getpathp.chttps://github.com/python/cpython/pull/11029/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
View file https://github.com/zooba/cpython/blob/b8b19f73c0d665dde20e1256bba15398ca9b4c7e/PC/getpathp.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11029/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11029/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
https://github.com/python/cpython/pull/11029/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
Please reload this pagehttps://github.com/python/cpython/pull/11029/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.