mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Closes #18807: pyvenv now takes a --copies argument allowing copies instead of symlinks even where symlinks are available and the default.
This commit is contained in:
parent
cabbde9e1e
commit
5939027969
@ -375,11 +375,17 @@ def main(args=None):
|
|||||||
use_symlinks = False
|
use_symlinks = False
|
||||||
else:
|
else:
|
||||||
use_symlinks = True
|
use_symlinks = True
|
||||||
parser.add_argument('--symlinks', default=use_symlinks,
|
group = parser.add_mutually_exclusive_group()
|
||||||
action='store_true', dest='symlinks',
|
group.add_argument('--symlinks', default=use_symlinks,
|
||||||
help='Try to use symlinks rather than copies, '
|
action='store_true', dest='symlinks',
|
||||||
'when symlinks are not the default for '
|
help='Try to use symlinks rather than copies, '
|
||||||
'the platform.')
|
'when symlinks are not the default for '
|
||||||
|
'the platform.')
|
||||||
|
group.add_argument('--copies', default=not use_symlinks,
|
||||||
|
action='store_false', dest='symlinks',
|
||||||
|
help='Try to use copies rather than symlinks, '
|
||||||
|
'even when symlinks are the default for '
|
||||||
|
'the platform.')
|
||||||
parser.add_argument('--clear', default=False, action='store_true',
|
parser.add_argument('--clear', default=False, action='store_true',
|
||||||
dest='clear', help='Delete the contents of the '
|
dest='clear', help='Delete the contents of the '
|
||||||
'environment directory if it '
|
'environment directory if it '
|
||||||
|
@ -40,6 +40,9 @@ Core and Builtins
|
|||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #18807: ``pyvenv`` now takes a --copies argument allowing copies
|
||||||
|
instead of symlinks even where symlinks are available and the default.
|
||||||
|
|
||||||
- Issue #18538: ``python -m dis`` now uses argparse for argument processing.
|
- Issue #18538: ``python -m dis`` now uses argparse for argument processing.
|
||||||
Patch by Michele Orrù.
|
Patch by Michele Orrù.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user