]> granicus.if.org Git - python/commit
[3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow for signing...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Aug 2019 21:09:26 +0000 (14:09 -0700)
committerSteve Dower <steve.dower@python.org>
Mon, 12 Aug 2019 21:09:26 +0000 (14:09 -0700)
commit0c64b57e0155c333b7c96ec2af009c1388cd5d31
tree02a25e36fda64927ca9544e01f68a08caaf60d42
parent2f087e279b94609073f630a86508b3a169c5e045
[3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow for signing (GH-14967)

- Remove use of replacement text in the script
- Make use of the pyvenv.cfg file for prompt value.
- Add parameters to allow more flexibility
- Make use of the current path, and assumptions about where env puts things, to compensate
- Make the script a bit more 'idiomatic' Powershell
- Add script documentation (Get-Help .\.venv\Scripts\Activate.ps1 shows PS help page now
(cherry picked from commit 732775d6be8062e72cf4995d5a9db0170e22c233)

Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
Lib/venv/scripts/common/Activate.ps1
Misc/NEWS.d/next/Library/2019-07-25-10-28-40.bpo-37354.RT3_3H.rst [new file with mode: 0644]