summaryrefslogtreecommitdiffstats
path: root/Lib/venv/scripts
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-124651: Quote template strings in `venv` activation scripts ↵Miss Islington (bot)2024-10-224-16/+16
| | | | | (GH-124712) (GH-125813) (cherry picked from commit d48cc82ed25e26b02eb97c6263d95dcaa1e9111b)
* [3.13] gh-125398: Convert paths in venv activate script when using Git Bash ↵Miss Islington (bot)2024-10-191-2/+2
| | | | | under Windows (GH-125399) (GH-125733) (cherry picked from commit 2a378dba987e125521b678364f0cd44b92dd5d52)
* [3.13] Trivial change: Update comments in activate about what running hash ↵Miss Islington (bot)2024-10-131-2/+3
| | | | | -r does (GH-125385) (GH-125387) (cherry picked from commit 82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1)
* [3.13] gh-122765: make prompt in activate.csh robust against unbalanced ↵Miss Islington (bot)2024-10-101-1/+1
| | | | | | | | | quotes and newlines (GH-123751) (GH-124185) gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751) (cherry picked from commit a15a584bf3f94ea11ab9363548c8872251364000) Co-authored-by: Jacek <jacek.duszenko@gmail.com> Co-authored-by: Brett Cannon <brett@python.org>
* gh-112571: Move fish venv activation script into the common folder (GH-117169)Totally a booplicate2024-03-241-0/+0
| | | | | | | pythongh-112571: allow using fish venv activation script on windows The fish shell can be used on windows under cygwin or msys2. This change moves the script to the common folder so the venv module will install it on both posix and nt systems (like the bash script).
* Update venv activate.bat to escape custom PROMPT variables on Windows ↵GILGAMESH2024-02-021-2/+2
| | | | (GH-114885)
* gh-89427: Provide the original prompt value for VIRTUAL_ENV_PROMPT (GH-106726)Jim Porter2024-01-234-4/+4
| | | | | | | | | | This improves the implementation in gh-106643. Previously, venv passed "(<prompt>) " to the activation scripts, but we want to provide the original value so that users can inspect it in the $VIRTUAL_ENV_PROMPT env var. Note: Lib/venv/scripts/common/Activate.ps1 surrounded the prompt value with parens a second time, so no change was necessary in that file.
* gh-112507: Detect Cygwin and MSYS with `uname` instead of `$OSTYPE` (GH-112508)James Morris2023-12-111-8/+12
| | | | | | Detect Cygwin and MSYS with `uname` instead of `$OSTYPE` `$OSTYPE` is not defined by POSIX and may not be present in other shells. `uname` is always available in any shell.
* gh-112431: Unconditionally call `hash -r` (GH-112432)James Morris2023-11-281-10/+4
| | | | | | | | | The `activate` script calls `hash -r` in two places to make sure the shell picks up the environment changes the script makes. Before that, it checks to see if the shell running the script is bash or zsh. `hash -r` is specified by POSIX and is not exclusive to bash and zsh. This guard prevents the script from calling `hash -r` in other `#!/bin/sh`-compatible shells like dash.
* gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253)James Turk2023-11-211-1/+1
|
* gh-89427: Set VIRTUAL_ENV_PROMPT even when VIRTUAL_ENV_DISABLE_PROMPT… ↵Jim Porter2023-07-134-5/+7
| | | | (GH-106643)
* gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)Steve Dower2023-04-173-2/+3
| | | Also touches the affected files in meaningless ways to ensure they get updated when pulling
* gh-103088: Sanitize venv paths when using MSYS or Cygwin Bash (GH-103325)Stanislav Syekirin2023-04-111-2/+9
|
* gh-93858: Prevent error when activating venv in nested fish instances (GH-93931)Thomas B. Brunner2022-06-271-3/+6
|
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-1/+1
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)Zackery Spytz2020-07-286-1/+15
| | | Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
* bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)Miro Hrončok2020-05-251-1/+1
|
* Fix the URL to fishshell.com (GH-20251)Jonathan Goble2020-05-201-1/+1
|
* bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131)Derek Keeler2020-04-021-4/+15
|
* bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290)schwarzichet2020-02-051-1/+0
|
* venv: Suppress warning message when bash hashing is disabled. (GH-17966)Dima2020-01-141-2/+2
| | | | | | | | | | | | | When using python's built-in venv activaton script warnings are printed when hashing is disabled in bash or zsh, like; `bash: hash: hashing disabled` This output is not really useful to the end-user and has been disabled in `virtualenv` for long. This commit is based on: https://github.com/pypa/virtualenv/commit/28e85bcd80d04b2a7ebce0e1d0b02d432b7e5593
* Fix old mention of virtualenv (GH-17417)Brett Cannon2019-11-291-1/+1
| | | Automerge-Triggered-By: @brettcannon
* bpo-38899: virtual environment activation for fish should use `source` ↵Brett Cannon2019-11-231-2/+2
| | | | | | | | | | | | (GH-17359) The previously documented use of `.` is considered deprecated (https://fishshell.com/docs/current/commands.html#source). https://bugs.python.org/issue38899 Automerge-Triggered-By: @brettcannon
* bpo-38344: Fix syntax in activate.bat (GH-16533)James Abel2019-10-071-1/+1
|
* bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330)Daniel Abrahamsson2019-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 ```
* bpo-36634: Fixes activate.bat when existing values contain double quotes ↵Steve Dower2019-09-111-25/+13
| | | | (GH-15924)
* bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__ ↵Brett Cannon2019-08-213-46/+13
| | | | | | | for prompt customization (GH-14941) The activation scripts generated by venv were inconsistent in how they changed the shell's prompt. Some used `__VENV_PROMPT__` exclusively, some used `__VENV_PROMPT__` if it was set even though by default `__VENV_PROMPT__` is always set and the fallback matched the default, and one ignored `__VENV_PROMPT__` and used `__VENV_NAME__` instead (and even used a differing format to the default prompt). This change now has all activation scripts use `__VENV_PROMPT__` only and relies on the fact that venv sets that value by default. The color of the customization is also now set in fish to the blue from the Python logo for as hex color support is built into that shell (much like PowerShell where the built-in green color is used).
* bpo-37354: Make Powershell Activate.ps1 script static to allow for signing ↵Derek Keeler2019-08-121-28/+203
| | | | | | | | | | (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
* 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
|\ \ | |/