Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
547f66f5
Commit
547f66f5
authored
Jan 28, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #26034: Sync documentation of --clear with its behavior
Most of the docs has already been updated in c3c188a0325a.
parent
a370a427
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
Doc/using/venv-create.inc
Doc/using/venv-create.inc
+2
-3
Lib/venv/__init__.py
Lib/venv/__init__.py
+6
-9
No files found.
Doc/using/venv-create.inc
View file @
547f66f5
...
@@ -45,9 +45,8 @@ The command, if run with ``-h``, will show the available options::
...
@@ -45,9 +45,8 @@ The command, if run with ``-h``, will show the available options::
are not the default for the platform.
are not the default for the platform.
--copies Try to use copies rather than symlinks, even when
--copies Try to use copies rather than symlinks, even when
symlinks are the default for the platform.
symlinks are the default for the platform.
--clear Delete the environment directory if it already exists.
--clear Delete the contents of the environment directory if it
If not specified and the directory exists, an error is
already exists, before environment creation.
raised.
--upgrade Upgrade the environment directory to use this version
--upgrade Upgrade the environment directory to use this version
of Python, assuming Python has been upgraded in-place.
of Python, assuming Python has been upgraded in-place.
--without-pip Skips installing or upgrading pip in the virtual
--without-pip Skips installing or upgrading pip in the virtual
...
...
Lib/venv/__init__.py
View file @
547f66f5
...
@@ -19,9 +19,8 @@ optional arguments:
...
@@ -19,9 +19,8 @@ optional arguments:
Give the virtual environment access to the system
Give the virtual environment access to the system
site-packages dir.
site-packages dir.
--symlinks Attempt to symlink rather than copy.
--symlinks Attempt to symlink rather than copy.
--clear Delete the environment directory if it already exists.
--clear Delete the contents of the environment directory if it
If not specified and the directory exists, an error is
already exists, before environment creation.
raised.
--upgrade Upgrade the environment directory to use this version
--upgrade Upgrade the environment directory to use this version
of Python, assuming Python has been upgraded in-place.
of Python, assuming Python has been upgraded in-place.
--without-pip Skips installing or upgrading pip in the virtual
--without-pip Skips installing or upgrading pip in the virtual
...
@@ -52,9 +51,8 @@ class EnvBuilder:
...
@@ -52,9 +51,8 @@ class EnvBuilder:
:param system_site_packages: If True, the system (global) site-packages
:param system_site_packages: If True, the system (global) site-packages
dir is available to created environments.
dir is available to created environments.
:param clear: If True and the target directory exists, it is deleted.
:param clear: Delete the contents of the environment directory if it
Otherwise, if the target directory exists, an error is
already exists, before environment creation.
raised.
:param symlinks: If True, attempt to symlink rather than copy files into
:param symlinks: If True, attempt to symlink rather than copy files into
virtual environment.
virtual environment.
:param upgrade: If True, upgrade an existing virtual environment.
:param upgrade: If True, upgrade an existing virtual environment.
...
@@ -361,9 +359,8 @@ def create(env_dir, system_site_packages=False, clear=False,
...
@@ -361,9 +359,8 @@ def create(env_dir, system_site_packages=False, clear=False,
:param env_dir: The target directory to create an environment in.
:param env_dir: The target directory to create an environment in.
:param system_site_packages: If True, the system (global) site-packages
:param system_site_packages: If True, the system (global) site-packages
dir is available to the environment.
dir is available to the environment.
:param clear: If True and the target directory exists, it is deleted.
:param clear: Delete the contents of the environment directory if it
Otherwise, if the target directory exists, an error is
already exists, before environment creation.
raised.
:param symlinks: If True, attempt to symlink rather than copy files into
:param symlinks: If True, attempt to symlink rather than copy files into
virtual environment.
virtual environment.
:param with_pip: If True, ensure pip is installed in the virtual
:param with_pip: If True, ensure pip is installed in the virtual
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment