Skip to content

Commit

Permalink
Pin pyjs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Aug 26, 2024
1 parent 6504866 commit 9fc75ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jupyterlite_xeus/create_conda_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def create_conda_env_from_env_file(root_prefix, env_file_content, env_file_locat

# get the specs
specs, pip_dependencies = _extract_specs(env_file_location, env_file_content)
# Force Python 3.11
if "python" in str(specs):
specs.append("python=3.11")
specs.append("pyjs=2.2.1=py311h37c3baf")

create_conda_env_from_specs(
env_name=env_name,
Expand Down Expand Up @@ -119,7 +123,7 @@ def _create_conda_env_from_specs_impl(env_name, root_prefix, specs, channels):
check=True,
)
return

if MAMBA_COMMAND:
# Mamba needs the directory to exist already
prefix_path.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 9fc75ef

Please sign in to comment.