From b1739b54126feaadf0ba128f8ecb7cfdfe474e58 Mon Sep 17 00:00:00 2001 From: Savin Date: Fri, 20 Sep 2024 08:45:38 -0700 Subject: [PATCH] create directory only if it doesn't already exists --- metaflow/plugins/pypi/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metaflow/plugins/pypi/bootstrap.py b/metaflow/plugins/pypi/bootstrap.py index ebd7b9d516d..828bb050878 100644 --- a/metaflow/plugins/pypi/bootstrap.py +++ b/metaflow/plugins/pypi/bootstrap.py @@ -89,7 +89,7 @@ # TODO: micromamba installation can be pawned off to micromamba.py f"""set -e; if ! command -v micromamba >/dev/null 2>&1; then - mkdir micromamba; + mkdir -p micromamba; python -c "import requests, bz2, sys; data = requests.get('https://micro.mamba.pm/api/micromamba/{architecture}/1.5.7').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