René's URL Explorer Experiment


Title: [3.7] bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029) by zooba · Pull Request #11030 · python/cpython · GitHub

Open Graph Title: [3.7] bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029) by zooba · Pull Request #11030 · python/cpython

X Title: [3.7] bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029) by zooba · Pull Request #11030 · 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/11030

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8376d47d-16d9-0b8f-2ba1-ed50e728a96e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE4A:14CB0E:1FDFCC:2C429C:6A523EA6
html-safe-nonced48aef5054de91e5f10e0947ea453cd107e3ae526141cefb6512741313bd6dff
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTRBOjE0Q0IwRToxRkRGQ0M6MkM0MjlDOjZBNTIzRUE2IiwidmlzaXRvcl9pZCI6IjM5MjIyNjY1ODc1MTQ5NTg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb36fcc7c69665a2417f43498ceec1de134bc00b7926a5a67661084cd0ba9e164
hovercard-subject-tagpull_request:236922305
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/11030/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/11030/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F11030%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%2F11030%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/11030/files
Reloadhttps://github.com/python/cpython/pull/11030/files
Reloadhttps://github.com/python/cpython/pull/11030/files
Please reload this pagehttps://github.com/python/cpython/pull/11030/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/11030/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:3.7https://github.com/python/cpython/tree/3.7
zooba:venvlauncher37https://github.com/zooba/cpython/tree/venvlauncher37
Conversation 0 https://github.com/python/cpython/pull/11030
Commits 5 https://github.com/python/cpython/pull/11030/commits
Checks 0 https://github.com/python/cpython/pull/11030/checks
Files changed https://github.com/python/cpython/pull/11030/files
Please reload this pagehttps://github.com/python/cpython/pull/11030/files
[3.7] bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029) https://github.com/python/cpython/pull/11030/files#top
Show all changes 5 commits https://github.com/python/cpython/pull/11030/files
283746b bpo-34977: Use venv redirector instead of original python.exe on Windows zooba Dec 7, 2018 https://github.com/python/cpython/pull/11030/commits/283746b7ce2bbe4101e0846cd963245921391e07
c053033 Missed splitting out getpathp.c change zooba Dec 7, 2018 https://github.com/python/cpython/pull/11030/commits/c05303353c8cd4922e3bdc91d414de99f9b38139
09703ca Adds missing import zooba Dec 7, 2018 https://github.com/python/cpython/pull/11030/commits/09703cab287dee056f5c1f3e52881e658096bbf1
6eeec1d Add NEWS entry zooba Dec 7, 2018 https://github.com/python/cpython/pull/11030/commits/6eeec1d03b4435bac0a203a479fd09f6f9d25449
0c8ccc0 Updates documentation zooba Dec 7, 2018 https://github.com/python/cpython/pull/11030/commits/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473
Clear filters https://github.com/python/cpython/pull/11030/files
Please reload this pagehttps://github.com/python/cpython/pull/11030/files
Please reload this pagehttps://github.com/python/cpython/pull/11030/files
venv.rst https://github.com/python/cpython/pull/11030/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
3.7.rst https://github.com/python/cpython/pull/11030/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
test_venv.py https://github.com/python/cpython/pull/11030/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
__init__.py https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
2018-12-07-10-00-38.bpo-34977.agQJbD.rst https://github.com/python/cpython/pull/11030/files#diff-aa870492383ea7678f4af51c9d659555ef31f87171a734744925114f41428610
getpathp.c https://github.com/python/cpython/pull/11030/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
launcher.c https://github.com/python/cpython/pull/11030/files#diff-e2ab17b255bd58eedd164c4013e70168ee5441e9a93ca15a09baa2d6d912d9c0
pcbuild.proj https://github.com/python/cpython/pull/11030/files#diff-36143ac3d62d4f210bf836dcc3104c7474562bca5b02a18aa5d285b4a8373c6e
venvlauncher.vcxproj https://github.com/python/cpython/pull/11030/files#diff-e45476f5226825e7e572b7afaa938a7a60021658946ed64be910ed8023ae9317
venvwlauncher.vcxproj https://github.com/python/cpython/pull/11030/files#diff-3aee4d643bf88a2c3612d257c7045e6aed1ebe773571fca9e8df232a91fe4b24
lib_files.wxs https://github.com/python/cpython/pull/11030/files#diff-26115511cc004fd83fde0fa4e7fe691a99ccdd351aa7b7ec2a8079444e962cce
Doc/library/venv.rsthttps://github.com/python/cpython/pull/11030/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
View file https://github.com/zooba/cpython/blob/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473/Doc/library/venv.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11030/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11030/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
https://github.com/python/cpython/pull/11030/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
https://github.com/python/cpython/pull/11030/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
https://github.com/python/cpython/pull/11030/files#diff-e9d59518f64376d77266f9d7217bbc5e29c7dd8ccc21b816603eacfda8a8c228
Doc/whatsnew/3.7.rsthttps://github.com/python/cpython/pull/11030/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
View file https://github.com/zooba/cpython/blob/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473/Doc/whatsnew/3.7.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11030/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11030/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
Lib/test/test_venv.pyhttps://github.com/python/cpython/pull/11030/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
View file https://github.com/zooba/cpython/blob/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473/Lib/test/test_venv.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11030/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11030/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
https://github.com/python/cpython/pull/11030/files#diff-d1cebff01d06039d87ad2fa988261142c49a9e097f017e0c70244433bd4c4d6e
Lib/venv/__init__.pyhttps://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
View file https://github.com/zooba/cpython/blob/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473/Lib/venv/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11030/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
https://github.com/python/cpython/pull/11030/files#diff-bcc6e36b2a636da9443a637b6c16d09c90225eedbf058cdaba308b8f963c859f
Misc/NEWS.d/next/Windows/2018-12-07-10-00-38.bpo-34977.agQJbD.rsthttps://github.com/python/cpython/pull/11030/files#diff-aa870492383ea7678f4af51c9d659555ef31f87171a734744925114f41428610
View file https://github.com/zooba/cpython/blob/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473/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/11030/{{ revealButtonHref }}
https://github.com/python/cpython/blob/3.7/.github/CODEOWNERS#L44
PC/getpathp.chttps://github.com/python/cpython/pull/11030/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
View file https://github.com/zooba/cpython/blob/0c8ccc068d9a31b442b4f2655dc6ff8226e8e473/PC/getpathp.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/11030/{{ revealButtonHref }}
https://github.com/python/cpython/pull/11030/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
https://github.com/python/cpython/pull/11030/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
Please reload this pagehttps://github.com/python/cpython/pull/11030/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.