Skip to content

Commit

Permalink
set CONDA_OVERRIDE_GLIBC by default
Browse files Browse the repository at this point in the history
  • Loading branch information
savingoyal committed Dec 13, 2024
1 parent 12b6869 commit 51809db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metaflow/plugins/pypi/micromamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def solve(self, id_, packages, python, platform):
"MAMBA_ADD_PIP_AS_PYTHON_DEPENDENCY": "true",
"CONDA_SUBDIR": platform,
# "CONDA_UNSATISFIABLE_HINTS_CHECK_DEPTH": "0" # https://github.com/conda/conda/issues/9862
# Add a default glibc version for linux-64 environments (ignored for other platforms)
# TODO: Make the version configurable
"CONDA_OVERRIDE_GLIBC": os.environ.get("CONDA_OVERRIDE_GLIBC", "2.27"),
}
cmd = [
"create",
Expand Down Expand Up @@ -132,6 +135,7 @@ def download(self, id_, packages, python, platform):
with tempfile.TemporaryDirectory() as tmp_dir:
env = {
"CONDA_SUBDIR": platform,
"CONDA_OVERRIDE_GLIBC": os.environ.get("CONDA_OVERRIDE_GLIBC", "2.27"),
}
cmd = [
"create",
Expand Down Expand Up @@ -171,6 +175,7 @@ def create(self, id_, packages, python, platform):
# use hardlinks when possible, otherwise copy files
# disabled for now since it adds to environment creation latencies
"CONDA_ALLOW_SOFTLINKS": "0",
"CONDA_OVERRIDE_GLIBC": os.environ.get("CONDA_OVERRIDE_GLIBC", "2.27"),
}
cmd = [
"create",
Expand Down

0 comments on commit 51809db

Please sign in to comment.