-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1219 from yuvipanda/new-default
Switch default python to 3.10
- Loading branch information
Showing
14 changed files
with
135 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
70 changes: 40 additions & 30 deletions
70
repo2docker/buildpacks/conda/environment-linux-aarch64.lock
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.7 | ||
- python=3.10 | ||
- nodejs=18 | ||
- pip | ||
- ipywidgets==8.0.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# originally [email protected] | ||
# added python=3.9 pin because implicit downgrade of Python from 3.10 to 3.9 isn't allowed | ||
name: xeus-cling | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- xeus-cling=0.6.0 | ||
- xtensor=0.20.8 | ||
- xtensor-blas=0.16.1 | ||
- notebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
import json | ||
import pprint | ||
from subprocess import check_output | ||
|
||
|
||
def json_sh(cmd): | ||
"""Run a command that produces JSON on stdout and return the parsed result""" | ||
buf = check_output(cmd) | ||
return json.loads(buf.decode("utf8", "replace")) | ||
|
||
|
||
conda_pkg_list = json_sh(["conda", "list", "--json"]) | ||
pprint.pprint(conda_pkg_list) | ||
# make it a dict | ||
pkgs = {pkg["name"]: pkg for pkg in conda_pkg_list} | ||
|
||
# base env resolved | ||
assert pkgs["python"]["version"].startswith("3.9"), pkgs["python"] | ||
assert "xeus-cling" in pkgs | ||
assert pkgs["xeus-cling"]["version"] == "0.6.0" | ||
|
||
# verify downgrade | ||
# this may be brittle, but it's unlikely any of these old versions | ||
# of packages will be rebuilt | ||
# xeus-cling 0.6.0 pins xeus 0.20, which pins openssl 1.1.1, | ||
# which in turn downgrades Python from >=3.9.16 to 3.9.6 | ||
|
||
assert pkgs["openssl"]["version"].startswith("1.1.1"), pkgs["openssl"]["version"] | ||
assert pkgs["python"]["version"] == "3.9.6", pkgs["python"]["version"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
|
||
assert sys.version_info[:2] == (3, 7) | ||
assert sys.version_info[:2] == (3, 10) | ||
|
||
import numpy |