mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
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:
parent
7f28bfefcf
commit
69b1ccf44c
2 changed files with 15 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue