From 27525adece4cfbfd4efac00bf079c8a5b24861c3 Mon Sep 17 00:00:00 2001 From: Alex Hedges Date: Sat, 21 Oct 2023 19:05:48 -0400 Subject: [PATCH] Determine Python versions properly for Anaconda The code for determining which Python version is bundled with which version of Anaconda has not been updated in a while. I have added 3.10 and 3.11, both of which were used in bundles this year. I also updated the URL for the source of this data, the Anaconda release notes, because it has moved. --- plugins/python-build/scripts/add_miniconda.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/scripts/add_miniconda.py b/plugins/python-build/scripts/add_miniconda.py index 929ec880..3ecb80d6 100755 --- a/plugins/python-build/scripts/add_miniconda.py +++ b/plugins/python-build/scripts/add_miniconda.py @@ -193,7 +193,11 @@ class CondaVersion(NamedTuple): else: return PyVersion.PY37 if self.flavor == "anaconda": - # https://docs.anaconda.com/anaconda/reference/release-notes/ + # https://docs.anaconda.com/free/anaconda/reference/release-notes/ + if v >= (2023,7): + return PyVersion.PY311 + if v >= (2023,3): + return PyVersion.PY310 if v >= (2021,11): return PyVersion.PY39 if v >= (2020,7):