diff --git a/bob/devtools/scripts/create.py b/bob/devtools/scripts/create.py index 91de856e508720aad915d389d3f3ee91eae0dc2d..30e87a88bcd8d7b697c47e6a5d2d8eba515c670b 100644 --- a/bob/devtools/scripts/create.py +++ b/bob/devtools/scripts/create.py @@ -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}"') diff --git a/conda/meta.yaml b/conda/meta.yaml index e26c4474b63f182441dab10eea16d812fd0c9b80..24d92eae90cd18e7d76db340cc17d5d6f5573167 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -41,7 +41,7 @@ requirements: - gitpython - python-gitlab - requests - - sphinx + - sphinx!=4.0.1 - pyyaml >=5.1 - twine <3 - lxml