summaryrefslogtreecommitdiffstats
path: root/Lib/venv
Commit message (Collapse)AuthorAgeFilesLines
* Fix old mention of virtualenv (GH-17417)Brett Cannon2019-11-291-1/+1
| | | Automerge-Triggered-By: @brettcannon
* bpo-38927: Use python -m pip to upgrade venv deps (GH-17403)Tzu-ping Chung2019-11-271-3/+3
| | | I suggest you add `bpo-NNNNN: ` as a prefix for the first commit for future PRs. Thanks!
* 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-37369: Fix initialization of sys members when launched via an app ↵Steve Dower2019-06-291-37/+56
| | | | | | | container (GH-14428) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
* bpo-34556: Add --upgrade-deps to venv module (#13100)Cooper Lees2019-06-171-5/+29
| | | | | | | Add --upgrade-deps to venv module - This allows for pip + setuptools to be automatically upgraded to the latest version on PyPI - Update documentation to represent this change bpo-34556: Add --upgrade to venv module
* 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
* bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566)Steve Dower2019-03-271-0/+3
|
* bpo-35978: Correctly skips venv tests in venvs (GH-12220)Steve Dower2019-03-211-7/+12
| | | Also fixes venvs from the build directory on Windows.
* bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440)Cheryl Sabella2019-03-081-0/+2
|
* bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)Steve Dower2019-02-041-4/+1
| | | | After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use. Make the same changes for macOS to avoid extra platform checks.
* bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)Steve Dower2019-01-301-17/+44
|
* bpo-34977: Use venv redirector instead of original python.exe on Windows ↵Steve Dower2018-12-101-30/+19
| | | | (GH-11029)
* Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)Victor Stinner2018-12-071-19/+30
| | | This reverts commit 468a15aaf9206448a744fc5eab3fc21f51966aad.
* bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-071-30/+19
|
* 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-34011: Fixes missing venv files and other tests (GH-9458)Steve Dower2018-09-201-23/+25
|
* bpo-34011: Update code copying DLLs and init.tcl into venvs. (GH-8253)Vinay Sajip2018-07-201-1/+5
|
* 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-022-7/+5
|
* Fixes #24875: Merged fix from 3.5.Vinay Sajip2017-02-021-0/+9
|\
| * Fixes #24875: pip can now be installed in a venv with --system-site-packages.Vinay Sajip2017-02-021-0/+9
| |
* | Fixes #29308: Merged fix from 3.5.Vinay Sajip2017-01-271-7/+9
|\ \ | |/
| * Fixes #29308: Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.Vinay Sajip2017-01-271-7/+9
| |
* | Null mergeSerhiy Storchaka2017-01-121-0/+0
|\ \ | |/
| * Issue #22343: Made bash activate script available on Windows.Vinay Sajip2017-01-121-0/+0
| |
* | Closes #25671: Merged fix from 3.5.Vinay Sajip2016-09-111-19/+20
|\ \ | |/
| * 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 #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-303-3/+3
| |
* | Closes #22829: Added --prompt option to venv.Vinay Sajip2016-08-061-5/+13
| |
* | Merge from 3.5 for issue #26664Brett Cannon2016-06-301-2/+2
|\ \ | |/
| * 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: Merged fix from 3.5.Vinay Sajip2016-02-131-2/+2
|\ \ | |/
| * Fixes #26348: Corrected typos in activate.fish script.Vinay Sajip2016-02-131-2/+2
| |
* | Simply docstrings of venv moduleBerker Peksag2016-01-301-39/+1
|/ | | | | | | | This will hopefully make maintenance of venv documentation easier. For example, see commits a4f0d76af176 and 5764cc02244d. This patch has been reviewed by Vinaj Sajip, the maintainer of venv module.
* Issue #26034: Improve wording of clear parameterBerker Peksag2016-01-281-4/+4
|
* Issue #26034: Sync documentation of --clear with its behaviorBerker Peksag2016-01-281-9/+6
| | | | Most of the docs has already been updated in c3c188a0325a.
* Issue #23399: pyvenv creates relative symlinks where possible.Barry Warsaw2015-02-061-6/+8
|
* Issue #21663: Fixed error caused by trying to create an existing directory.Vinay Sajip2014-06-051-1/+2
|
* Don't chmod() if path is a symlink.Barry Warsaw2014-06-041-1/+2
|