Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Aug 19, 2024
1 parent 2ef2873 commit 983bff6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions unidep/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,12 +934,18 @@ def _install_command( # noqa: PLR0912, PLR0915
)

if env_spec.pip and not skip_pip:
pip_command = [python_executable, "-m", "pip", "install", *env_spec.pip]
conda_run = _maybe_conda_run(conda_executable, conda_env_name, conda_env_prefix)
command = [*conda_run, *pip_command]
print(f"📦 Installing pip dependencies with `{' '.join(command)}`\n")
pip_command = [
*conda_run,
python_executable,
"-m",
"pip",
"install",
*env_spec.pip,
]
print(f"📦 Installing pip dependencies with `{' '.join(pip_command)}`\n")
if not dry_run: # pragma: no cover
subprocess.run(command, check=True)
subprocess.run(pip_command, check=True)

installable = []
if not skip_local:
Expand Down

0 comments on commit 983bff6

Please sign in to comment.