summaryrefslogtreecommitdiffstats
path: root/Doc/library/venv.rst
Commit message (Collapse)AuthorAgeFilesLines
* Adjust expression from `==` to `!=` in alignment with the meaning of the ↵Ben Faulhaber2023-05-011-1/+1
| | | | paragraph. (GH-104021)
* gh-95299: Stop installing setuptools as a part of ensurepip and venv (#101039)Pradyun Gedam2023-04-181-2/+5
| | | | | | | Remove the bundled setuptools wheel from ensurepip, and stop installing setuptools in environments created by venv. Co-Authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* Remove misformatted exclamation marks in docs (#102694)Tom Levy2023-03-151-2/+2
| | | | | | | | | | | | | | | | | Remove the exclamation mark from :program:`!foo` in .rst files because it inadvertently shows up in the rendered HTML. (Sphinx's cross-referencing roles use a '!' prefix to suppress hyperlinking[1], but :program: is not a cross-referencing role so the '!' is displayed verbatim.) The exclamation marks in venv.rst were introduced in #98350. See comments [2] and [3] for additional discussion. [1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax [2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759 [3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047 Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* Remove or update bitbucket links (GH-101963)sblondon2023-03-081-1/+1
| | | | | | Since Mercurial removal from bitbucket.org, some links are broken. They are replaced by github.com or webarchive.org links if available. Otherwise, they are removed. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177)Hugo van Kemenade2022-12-141-68/+60
| | | | | | | | | | gh-100176: Remove redundant compat code for Python 3.2 and older Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we can remove this old compatibility check and unindent the old else-block. Also, in the unindented block, replace a .format() call with an f-string. Plus similar changes in the documentation.
* [doc] Refresh the venv introduction documentation, and correct the statement ↵Phil Elson2022-10-191-53/+84
| | | | | about VIRTUAL_ENV (GH-98350) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-88452: Add a warning about non-portability of environments. (GH-98155)Vinay Sajip2022-10-101-0/+13
|
* gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)Christian Heimes2022-08-021-0/+1
| | | | | | Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Michael Droettboom <mdboom@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-85454: Remove distutils documentation (#95239)Christian Heimes2022-07-251-1/+1
| | | | Most places now refer to setuptools or link to setuptools documentation. Some examples like zipapp need to be updated later.
* gh-94214: Add venv context.lib_path and document the context (GH-94221)Paul Moore2022-06-261-0/+39
|
* bpo-45413: Define "posix_venv", "nt_venv" and "venv" sysconfig installation ↵Miro Hrončok2022-03-181-0/+5
| | | | | | | | | | | | | | | | | | | schemes (GH-31034) Define *posix_venv* and *nt_venv* sysconfig installation schemes to be used for bootstrapping new virtual environments. Add *venv* sysconfig installation scheme to get the appropriate one of the above. The schemes are identical to the pre-existing *posix_prefix* and *nt* install schemes. The venv module now uses the *venv* scheme to create new virtual environments instead of hardcoding the paths depending only on the platform. Downstream Python distributors customizing the *posix_prefix* or *nt* install scheme in a way that is not compatible with the install scheme used in virtual environments are encouraged not to customize the *venv* schemes. When Python itself runs in a virtual environment, sysconfig.get_default_scheme and sysconfig.get_preferred_scheme with `key="prefix"` returns *venv*.
* [doc] Add a missing apostrophe in a code example in venv.rst (GH-28391)Arkaprabha Chakraborty2021-09-171-1/+1
|
* bpo-44388: Update venv EnvBuilder.ensure_directories() docs. (GH-26663)Matthew Clapp2021-07-021-5/+6
| | | | | | | | | | | Ref: This changes the documentation for `EnvBuilder.ensure_directories(env_dir)` to match the actual behavior of that API call. In particular, `ensure_directories()` is not affected by the state of the `upgrade` attribute, and will not cause an error to have existing directories whether or not the `clear` attribute is set. This documentation change I believe should be valid to all python versions back to 3.6. Automerge-Triggered-By: GH:vsajip
* Update link to Django's Context class. (#24805)Mariusz Felisiak2021-03-131-1/+1
| | | | * Update link to Django's Context class. * Update link to get-pip.py.
* bpo-34556: Document addition of upgrade_deps to venv.create (GH-20135)Shantanu2020-05-231-1/+5
|
* bpo-39417: Fix broken link to guide to building venvs (GH-18432)Ogi Moore2020-02-101-1/+1
|
* bpo-38901: Allow setting a venv's prompt to the basename of the current ↵Vinay Sajip2020-01-141-1/+2
| | | | | | directory. (GH-17946) When a prompt value of '.' is specified, os.path.basename(os.getcwd()) is used to configure the prompt for the created venv.
* bpo-38928: Fix versionadded for venv's upgrade_deps function (GH-17404)Tzu-ping Chung2019-11-271-2/+2
|
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-121-2/+2
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* bpo-37662: Documented venv.EnvBuilder.upgrade_dependencies(). (GH-15768)Vinay Sajip2019-09-091-0/+8
|
* Touch up venv docs (GH-14922)Brett Cannon2019-07-231-21/+26
|
* bpo-34556: Add --upgrade-deps to venv module (#13100)Cooper Lees2019-06-171-1/+6
| | | | | | | 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-36275: enhance documentation for venv.create() (GH-13114)Sebastian Koslowski2019-05-061-1/+6
|
* bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)Steve Dower2019-01-301-9/+13
|
* bpo-34977: Use venv redirector instead of original python.exe on Windows ↵Steve Dower2018-12-101-7/+10
| | | | (GH-11029)
* bpo-24356: Specify which Python binary will be used with venv (GH-6589)Elena Oat2018-07-281-3/+8
|
* bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296)Vinay Sajip2018-06-011-2/+1
|
* bpo-25427: Remove pyvenv (GH-5962)Brett Cannon2018-04-201-4/+0
|
* bpo-25910: Link redirections in docs (#1933)Sanyam Khurana2018-01-201-1/+1
| | | Fixes some redirection links in docs.
* Merge from 3.5Zachary Ware2016-10-261-1/+1
|\
| * Fix default role usageZachary Ware2016-10-261-1/+1
| |
* | Merge (issue #25152)Brett Cannon2016-10-211-0/+6
|\ \ | |/
| * Issue #25152: Mention the deprecation of pyvenvBrett Cannon2016-10-211-0/+6
| |
* | Closes #22829: Added --prompt option to venv.Vinay Sajip2016-08-061-1/+9
| |
* | Issue #27285: Document the deprecation of the pyvenv script.Brett Cannon2016-07-081-57/+67
|/ | | | | | | | | As part of the update, the documentation was updated to normalize around the term "virtual environment" instead of relying too heavily on "venv" for the same meaning and leading to inconsistent usage of either. Thanks to Steve Piercy for the patch.
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-4/+4
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #21034: Remove outdated paragraph from venv documentationBerker Peksag2016-03-071-5/+0
| | | | | Since Python 3.4, there is no need to install pip and setuptools into a venv manually.
* Merge doc change from 3.3Jason R. Coombs2014-05-131-2/+2
|\
| * Update docs to reflect resurrection of Setuptools over DistributeJason R. Coombs2014-05-131-2/+2
| |
* | Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-0/+2
| |
* | Tweaks to What's New and some referenced docsNick Coghlan2014-02-091-1/+2
| |
* | Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-3/+3
|\ \ | |/
| * Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-2/+2
| |
* | Close #19552: venv and pyvenv ensurepip integrationNick Coghlan2013-11-221-2/+13
| |
* | merge with 3.3Georg Brandl2013-10-061-2/+2
|\ \ | |/
| * Fix method name: ensure_directories, not create_directories. Found by ↵Georg Brandl2013-10-061-2/+2
| | | | | | | | Michael Rand on docs@.
* | Closes #19139: Changed usage of __VENV_NAME__ and added __VENV_PROMPT__.Vinay Sajip2013-10-021-0/+3
| |
* | Closes #18939: Merged documentation update from 3.3.Vinay Sajip2013-09-061-0/+14
|\ \ | |/
| * Issue #18939: Updated venv documentation with some clarifications.Vinay Sajip2013-09-061-0/+14
| |
* | Closes #18433: Merged documentation update from 3.3.Vinay Sajip2013-07-121-3/+10
|\ \ | |/