Skip to content

Commit

Permalink
change writable location for local micromamba (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
savingoyal committed Oct 11, 2023
1 parent 545e0cb commit 5f373fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion metaflow/plugins/pypi/micromamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ def __init__(self):
# micromamba is a tiny version of the mamba package manager and comes with
# metaflow specific performance enhancements.

# METAFLOW_HOME might not be writable but METAFLOW_TOKEN_HOME might be.
if os.environ.get("METAFLOW_TOKEN_HOME"):
_home = os.environ.get("METAFLOW_TOKEN_HOME")
else:
_home = os.environ.get("METAFLOW_HOME", "~/.metaflowconfig")
_path_to_hidden_micromamba = os.path.join(
os.path.expanduser(os.environ.get("METAFLOW_HOME", "~/.metaflowconfig")),
os.path.expanduser(_home),
"micromamba",
)
self.bin = (
Expand Down

0 comments on commit 5f373fe

Please sign in to comment.