Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot fix: Pin Python version (Backport #111) #112

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion environment-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- black
- build
- python-build
- empack >=3.3
- hatch-jupyter-builder
- hatch-nodejs-version
Expand Down
5 changes: 4 additions & 1 deletion jupyterlite_xeus/create_conda_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +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)
# 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 Expand Up @@ -119,7 +122,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
Loading