Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Create condarc later
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed May 19, 2022
1 parent b710ec2 commit 8c02d9e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jupyterlite_xeus_python/env_build_addon.py
Expand Up @@ -82,9 +82,6 @@ def __init__(self, *args, **kwargs):
self.env_name = "xeus-python-kernel"

self.prefix_path.mkdir(parents=True, exist_ok=True)
with open(self.prefix_path / ".condarc", "w") as fobj:
fobj.write(f"subdir: {PLATFORM}")
os.environ["CONDARC"] = str(self.prefix_path / ".condarc")

self.orig_config = os.environ.get("CONDARC")

Expand Down Expand Up @@ -168,6 +165,9 @@ def create_env(self):
],
cwd=self.cwd.name,
)
with open(self.prefix_path / ".condarc", "w") as fobj:
fobj.write(f"subdir: {PLATFORM}")
os.environ["CONDARC"] = str(self.prefix_path / ".condarc")
check_call(
[
"mamba",
Expand Down Expand Up @@ -210,6 +210,9 @@ def create_env(self):
],
cwd=self.cwd.name,
)
with open(self.prefix_path / ".condarc", "w") as fobj:
fobj.write(f"subdir: {PLATFORM}")
os.environ["CONDARC"] = str(self.prefix_path / ".condarc")
check_call(
[
"conda",
Expand Down

0 comments on commit 8c02d9e

Please sign in to comment.