Skip to content

Commit

Permalink
Hacky: Only force Python version if Python is spotted
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Aug 23, 2024
1 parent 78a1851 commit 441bc1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyterlite_xeus/create_conda_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ 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)
specs.append("python=3.11")
# Force Python 3.11
if "python" in str(specs):
specs.append("python=3.11")

create_conda_env_from_specs(
env_name=env_name,
Expand Down

0 comments on commit 441bc1b

Please sign in to comment.