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

Commit 3d66855

Browse files
authored
Strict respect of channels specified in env file (#149)
1 parent 3ea3e6f commit 3d66855

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

jupyterlite_xeus_python/build.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def build_and_pack_emscripten_env(
222222
log=None,
223223
):
224224
"""Build a conda environment for the emscripten platform and pack it with empack."""
225-
channels = copy(CHANNELS)
225+
channels = CHANNELS
226226
specs = [
227227
f"python={python_version}",
228228
"xeus-lite",
@@ -250,10 +250,7 @@ def build_and_pack_emscripten_env(
250250
if env_data.get("name") is not None:
251251
env_name = env_data["name"]
252252

253-
if env_data.get("channels") is not None:
254-
channels.extend(
255-
[channel for channel in env_data["channels"] if channel not in CHANNELS]
256-
)
253+
channels = env_data.get("channels", CHANNELS)
257254

258255
if env_data.get("dependencies") is not None:
259256
dependencies = env_data["dependencies"]

0 commit comments

Comments
 (0)