summaryrefslogtreecommitdiffstats
path: root/Lib/venv/scripts
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] venv: Update Aspen URL in 'activate' script comment (GH-21797)Frank Dana2020-08-193-3/+3
| | | | | | | | | | | | | A comment in the venv `activate` script (as well as `activate.csh` and `activate.fish`) referencing Aspen magic directories lists a "further information" URL for Aspen at the zetadev.com website. zetadev.com changed ownership in 2019, and now redirects to a server in China with an expired security certificate. Out of an abundance of caution, while not changing the _code_ for the activate scripts, this PR updates the URL in those comments to reference Aspen's new documentation home at https://aspen.io/. No issue created, as I suspect this falls within the definition of a "trivial" change. Please let me know if I'm wrong about that, and I'll open the necessary issue(s). While filed against the 3.8 branch, strictly speaking this is not a backported PR. The comment in question was entirely removed from the script between Python 3.8 and 3.9. (IMHO this _should_ probably be backported to 3.7 and 3.6, as well. I'll happily file those PRs if needed.) Automerge-Triggered-By: @vsajip
* bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)Miss Islington (bot)2020-05-251-1/+1
| | | | | (cherry picked from commit ef16958d17e83723334a51428f410f726d6492a7) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131)Miss Islington (bot)2020-04-021-4/+15
| | | | | (cherry picked from commit 45217af29c7f380089af17beb48a5ea0560bbb9d) Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
* bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) (GH-18359)Miss Islington (bot)2020-02-051-1/+0
| | | | | (cherry picked from commit 787b6d548c250f36df6d3f3179f60d754c8aa5e3) Co-authored-by: schwarzichet <15522755+schwarzichet@users.noreply.github.com>
* bpo-38344: Fix syntax in activate.bat (GH-16533)Miss Islington (bot)2019-10-071-1/+1
| | | | | (cherry picked from commit e310af9e2941c2fbb7370e003276cc37eb230f16) Co-authored-by: James Abel <j@abel.co>
* bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15973)Miss Islington (bot)2019-09-111-1/+1
| | | | | | | | | | | | | Before, running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) would produce a warning: ``` $ python3 -m venv test $ source test/bin/activate (test) $ deactivate -bash: $1: unbound variable ``` (cherry picked from commit 5209e586b7cac9a43b2c44349a26b1b0af06ead3) Co-authored-by: Daniel Abrahamsson <hamsson@gmail.com>
* bpo-36634: Fixes activate.bat when existing values contain double quotes ↵Miss Islington (bot)2019-09-111-25/+13
| | | | | | | (GH-15924) (cherry picked from commit 574b324bdc9a126b5a4488c3613f11ad2555415e) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow for ↵Miss Islington (bot)2019-08-121-28/+203
| | | | | | | | | | | | | 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>
* bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321)Lorenz Mende2019-04-101-1/+1
| | | | | | | | | The script needs to be updated to support win 10/ 1803 chcp.com command (output has trailing dot) https://bugs.python.org/issue34144
* Revert "bpo-32409: Fix regression in activate.bat on international Windows ↵Pablo Galindo2018-11-071-5/+6
| | | | | (GH-10295)" (GH-10403) This reverts commit c64583b6d3e8516a8cd2b5f84fc1e300bfac2206 due to multiple buildbot failures when building it.
* bpo-32409: Fix regression in activate.bat on international Windows (GH-10295)samstagern2018-11-071-6/+5
| | | | | | | | | | | Handle Unicode contents on localised Windows systems when activating a venv. activate.bat currently breaks on German Windows systems, as chcp.com does not return a plain number as on English systems, but (arbitrarily) appends a dot at the end (for example "Aktive Codepage: 850." instead of "Active Codepage: 850"). The dependency to chcp.com is removed and ctypes is used to get, set and restore the console output code page. The code page for console input is not changed. We can't use __VENV_PYTHON__ to find python.exe, since it's UTF-8. cmd.exe decodes the script using the console output code page.
* bpo-32718: Make Activate.ps1 for venv cross-platform and available on all ↵Brett Cannon2018-09-211-1/+6
| | | | | | | platforms (GH-9321) PowerShell Core 6.1 is the cross-platform port of Windows PowerShell. This change updates Activate.ps1 to not make Windows assumptions as well as installing it into the bin/Scripts directory on all operating systems. Requires PowerShell Core 6.1 for proper readline support once the shell has been activated for the virtual environment.
* bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)Steve Dower2018-02-201-0/+13
|
* bpo-25351: avoid activate failure on strict shells (GH-3804)Sorin Sbarnea2017-09-291-13/+13
|
* bpo-31462: Remove trailing whitespaces. (#3564)Serhiy Storchaka2017-09-141-1/+1
|
* bpo-27425: Be more explicit in .gitattributes (GH-840)Zachary Ware2017-06-103-104/+104
| | | Updates checked-in line endings on several files.
* Closes #29213: Merged fix from 3.6.Vinay Sajip2017-02-021-1/+1
|
* Fixes #29308: Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.Vinay Sajip2017-01-271-7/+9
|
* Issue #22343: Made bash activate script available on Windows.Vinay Sajip2017-01-121-0/+0
|
* Fixes #25671: Updated prompt handling in activate.fish.Vinay Sajip2016-09-111-19/+20
|
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-073-3/+3
|
* Issue #26665: Remove mis-use of ``$`` in activate.fish.Brett Cannon2016-06-301-2/+2
| | | | | | | This is a revertion of cfc66e37eb8e. Thanks to 鄭景文 for the bug report. Thanks to Tin Tvrtković, Xiang Zhang, and Dan McCombs for diagnosing the issue.
* Fixes #26348: Corrected typos in activate.fish script.Vinay Sajip2016-02-131-2/+2
|
* Closes #19139: Changed usage of __VENV_NAME__ and added __VENV_PROMPT__.Vinay Sajip2013-10-024-6/+6
|
* Closes #18479: Changed venv Activate.ps1 to make deactivate a function, and ↵Vinay Sajip2013-07-192-34/+30
| | | | removed Deactivate.ps1.
* Closes #18224: Removed pydoc script from created venv, as it causes problems ↵Vinay Sajip2013-06-302-9/+0
|\ | | | | | | on Windows and adds no value over and above python -m pydoc ...
| * Issue #18224: Removed pydoc script from created venv, as it causes problems ↵Vinay Sajip2013-06-302-9/+0
| | | | | | | | on Windows and adds no value over and above python -m pydoc ...
* | Closes #17743: Merged fix from 3.3.Vinay Sajip2013-05-201-13/+14
|\ \ | |/
| * Issue #17743: Now use extended syntax of set command in .bat files.Vinay Sajip2013-05-201-13/+14
| |
* | Closes #17744: Merged fix from 3.3.Vinay Sajip2013-05-201-4/+8
|\ \ | |/
| * Issue #17744: Now unset VIRTUAL_ENV environment variable when deactivating.Vinay Sajip2013-05-201-4/+8
| |
* | Issue #15417: Add support for csh and fish in venv activation scripts.Andrew Svetlov2012-10-042-0/+111
|/
* Closes #15361: Corrected venv prompt in PowerShell activation script.Vinay Sajip2012-07-151-1/+1
|
* Closes #15157: pydoc script added to venvs.Vinay Sajip2012-06-242-0/+9
|
* Remove packaging from the standard library.Éric Araujo2012-06-242-22/+0
| | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* Removed pysetup3.exe executable.Vinay Sajip2012-05-292-0/+0
|
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-268-0/+199