Skip to content

Commit

Permalink
remove dependency on wget for micromamba (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
savingoyal committed Oct 18, 2023
1 parent f1e8e8d commit fd61160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaflow/plugins/pypi/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
f"""set -e;
if ! command -v micromamba >/dev/null 2>&1; then
mkdir micromamba;
wget -qO- https://micro.mamba.pm/api/micromamba/{architecture}/latest | python -c "import sys, bz2; sys.stdout.buffer.write(bz2.decompress(sys.stdin.buffer.read()))" | tar -xv -C $(pwd)/micromamba bin/micromamba --strip-components 1;
python -c "import requests, bz2, sys; data = requests.get('https://micro.mamba.pm/api/micromamba/{architecture}/latest').content; sys.stdout.buffer.write(bz2.decompress(data))" | tar -xv -C $(pwd)/micromamba bin/micromamba --strip-components 1;
export PATH=$PATH:$(pwd)/micromamba;
if ! command -v micromamba >/dev/null 2>&1; then
echo "Failed to install Micromamba!";
Expand Down

0 comments on commit fd61160

Please sign in to comment.