Skip to content
Snippets Groups Projects
Commit 6edcc911 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'issue-74' into 'master'

Do not run pip install if no packages to install

Closes #74

See merge request !219
parents 1eb35197 38ddb6b5
No related branches found
No related tags found
1 merge request!219Do not run pip install if no packages to install
Pipeline #50871 passed
......@@ -279,13 +279,16 @@ def create(
if "create" in config:
pip_extras_config = config["create"].get("pip_extras", "").split()
pip_extras = _uniq(pip_extras_config + list(pip_extras))
logger.info("Pip-installing: %s", pip_extras)
cmd = [conda, "run", "--live-stream", "--name", name, "pip", "install"]
cmd += pip_extras
if not dry_run:
run_cmdline(cmd)
if pip_extras:
logger.info("Pip-installing: %s", pip_extras)
cmd = [conda, "run", "--live-stream", "--name", name, "pip", "install"]
cmd += pip_extras
if not dry_run:
run_cmdline(cmd)
else:
logger.info(f"Command: {' '.join(cmd)}")
else:
logger.info(f"Command: {' '.join(cmd)}")
logger.info("No pip packages to install")
echo_normal(f'>>> Execute on your shell: "conda activate {name}"')
......@@ -41,7 +41,7 @@ requirements:
- gitpython
- python-gitlab
- requests
- sphinx
- sphinx!=4.0.1
- pyyaml >=5.1
- twine <3
- lxml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment