Kaynağa Gözat

Fix scripts not getting a Python version for `verify_pyXXX`

pull/3143/head
Ivan Pozdeev 1 yıl önce
ebeveyn
işleme
ac2f882aab
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      plugins/python-build/scripts/add_miniconda.py

+ 2
- 1
plugins/python-build/scripts/add_miniconda.py Dosyayı Görüntüle

@ -213,7 +213,7 @@ class CondaVersion(NamedTuple):
return PyVersion.PY37
else:
# since 4.8, Miniconda specifies versions explicitly in the file name
return None
raise ValueError("Miniconda 4.8+ is supposed to specify a Python version explicitly")
if self.flavor == "anaconda":
# https://docs.anaconda.com/free/anaconda/reference/release-notes/
if v >= (2024,6):
@ -270,6 +270,7 @@ class CondaSpec(NamedTuple):
SupportedArch(arch),
md5,
repo,
py_ver
)
if py_version is None and py_ver is None and ver != "latest":
spec = spec.with_py_version(spec.version.default_py_version())

Yükleniyor…
İptal
Kaydet