mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
Merge pull request #2805 from worldmind/master
Pass all params to voxapi.create
This commit is contained in:
commit
f26b778d38
2 changed files with 18 additions and 2 deletions
13
news/fix_voxapi_create_params.rst
Normal file
13
news/fix_voxapi_create_params.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
**Added:** None
|
||||
|
||||
**Changed:** None
|
||||
|
||||
**Deprecated:** None
|
||||
|
||||
**Removed:** None
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* Pass all params to voxapi.create
|
||||
|
||||
**Security:** None
|
|
@ -23,7 +23,7 @@ class VoxHandler:
|
|||
help='The environments to create')
|
||||
|
||||
create.add_argument('--system-site-packages', default=False,
|
||||
action='store_true', dest='system_site',
|
||||
action='store_true', dest='system_site_packages',
|
||||
help='Give the virtual environment access to the '
|
||||
'system site-packages dir.')
|
||||
|
||||
|
@ -89,7 +89,10 @@ class VoxHandler:
|
|||
"""Create a virtual environment in $VIRTUALENV_HOME with python3's ``venv``.
|
||||
"""
|
||||
print('Creating environment...')
|
||||
self.vox.create(args.name)
|
||||
self.vox.create(args.name,
|
||||
system_site_packages=args.system_site_packages,
|
||||
symlinks=args.symlinks,
|
||||
with_pip=args.with_pip)
|
||||
msg = 'Environment {0!r} created. Activate it with "vox activate {0}".\n'
|
||||
print(msg.format(args.name))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue