Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/planemo/commands/cmd_virtualenv.py @ 2:6af9afd405e9 draft
"planemo upload commit 0a63dd5f4d38a1f6944587f52a8cd79874177fc1"
| author | shellac | 
|---|---|
| date | Thu, 14 May 2020 14:56:58 -0400 | 
| parents | 26e78fe6e8c4 | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 1:75ca89e9b81c | 2:6af9afd405e9 | 
|---|---|
| 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) | 
