Skip to content

Commit

Permalink
Merge branch 'externally-managed' of github.com:jaimergp/conda-pip in…
Browse files Browse the repository at this point in the history
…to externally-managed
  • Loading branch information
jaimergp committed Feb 11, 2024
2 parents 3f2518e + c6eeac3 commit 994e722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda_pip/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@ def ensure_target_env_has_externally_managed(command: str):
if path.exists():
path.unlink()
ensure_externally_managed(target_prefix)
else: # remove
elif command == "remove":
if list(prefix_data.query("pip")):
# leave in place if pip is still installed
return
next(get_externally_managed_path(target_prefix)).unlink()
else:
raise ValueError(f"command {command} not recognized.")

0 comments on commit 994e722

Please sign in to comment.