fix(conda) (#5985)

* fix(conda)

closes #5091

dosu-bot thinks this is the fix, maybe. i'm not so sure.

* find newer versions
This commit is contained in:
Jacob Heider 2024-04-25 16:29:39 -04:00 committed by GitHub
parent 7f28bfefcf
commit 69b1ccf44c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 4 deletions

View file

@ -16,7 +16,7 @@ index 5d8d179..dfa8da4 100644
cache_dir_name = "pkgs32" if context.force_32bit else "pkgs"
fixed_dirs = (
- self.root_prefix,
+ # self.root_prefix,
join("~", ".conda"),
+ self.root_prefix,
)
if on_win:

View file

@ -8,14 +8,18 @@ warnings:
versions:
url: https://repo.anaconda.com/miniconda/
match: /Miniconda3-py311_\d+\.\d+\.\d+-1-MacOSX-arm64.sh/
match: /Miniconda3-py311_\d+\.\d+\.\d+-\d+-MacOSX-arm64.sh/
strip:
- /Miniconda3-py311_/
- /-1-MacOSX-arm64.sh/
- /-\d+-MacOSX-arm64.sh/
dependencies:
pkgx.sh: ^1
runtime:
env:
CRYPTOGRAPHY_OPENSSL_NO_LEGACY: 1
build:
dependencies:
# https://docs.conda.io/projects/miniconda/en/latest/#latest-miniconda-installer-links
@ -24,7 +28,14 @@ build:
curl.se: '*'
script:
- bkpyvenv stage {{prefix}} {{version}}
- curl -LS https://repo.anaconda.com/miniconda/Miniconda3-py311_{{version}}-1-${SUFFIX}.sh -o miniconda.sh
# FIXME: we need a way to handle suffix versions
- |
for v in 9 8 7 6 5 4 3 2 1 0; do
if curl -fLS https://repo.anaconda.com/miniconda/Miniconda3-py311_{{version}}-$v-${SUFFIX}.sh -o miniconda.sh; then
break
fi
done
test -f miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -f -s -p {{prefix}}/venv