Merge pull request #2805 from worldmind/master

Pass all params to voxapi.create
This commit is contained in:
Gil Forsyth 2018-09-08 10:52:26 -04:00 committed by GitHub
commit f26b778d38
Failed to generate hash of commit
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,13 @@
**Added:** None
**Changed:** None
**Deprecated:** None
**Removed:** None
**Fixed:**
* Pass all params to voxapi.create
**Security:** None

View file

@ -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))