Skip to content
Snippets Groups Projects
Commit 68dd980c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove /opt/conda entries from path to avoid conflicts

parent 8a6624af
Branches
Tags
No related merge requests found
Pipeline #54501 canceled
...@@ -284,7 +284,13 @@ def install_miniconda(prefix, name): ...@@ -284,7 +284,13 @@ def install_miniconda(prefix, name):
logger.info("(move) %s -> %s", prefix, cached) logger.info("(move) %s -> %s", prefix, cached)
os.rename(prefix, cached) os.rename(prefix, cached)
run_cmdline(["bash", "miniconda.sh", "-b", "-p", prefix]) # remove /opt/conda entries from path to avoid conflicts
env = os.environ.copy()
env["PATH"] = ":".join(
[p for p in env["PATH"].split(":") if not p.startswith("/opt/conda/")]
)
run_cmdline(["bash", "miniconda.sh", "-b", "-p", prefix], env=env)
if cached is not None: if cached is not None:
merge_conda_cache(cached, prefix, name) merge_conda_cache(cached, prefix, name)
shutil.rmtree(cached) shutil.rmtree(cached)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment