Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/planemo/commands/cmd_virtualenv.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author | shellac |
---|---|
date | Sat, 02 May 2020 07:14:21 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:26e78fe6e8c4 |
---|---|
1 """Module describing the planemo ``virtualenv`` command.""" | |
2 import click | |
3 | |
4 from planemo import virtualenv | |
5 from planemo.cli import command_function | |
6 | |
7 VIRTUALENV_PATH_TYPE = click.Path( | |
8 exists=False, | |
9 writable=True, | |
10 resolve_path=True, | |
11 ) | |
12 | |
13 | |
14 @click.command("virtualenv") | |
15 @click.option("-p", "--python", | |
16 metavar="PYTHON_EXE") | |
17 @click.argument("virtualenv_path", | |
18 metavar="VIRTUALENV_PATH", | |
19 type=VIRTUALENV_PATH_TYPE) | |
20 @command_function | |
21 def cli(ctx, virtualenv_path, **kwds): | |
22 """Create a virtualenv. | |
23 | |
24 Use virtualenv as library to create a virtualenv for Galaxy if virtualenv | |
25 is not available on the PATH. | |
26 """ | |
27 virtualenv.create_and_exit(virtualenv_path, **kwds) |