Skip to content

Commit fdad948

Browse files
authored
Fix conda install on distributions with strict POSIX sh (#18)
We require the same fix that was made on upstream pytorch pytorch/pytorch#91371 ROCm/pytorch@b72ec7c Without this change install_conda.sh stage fails ``` #21 6.254 CondaFileIOError: '/opt/conda/pkgs/envs/*/env.txt'. [Errno 2] No such file or directory: '/opt/conda/pkgs/envs/*/env.txt' #21 6.254 #21 ERROR: executor failed running [/bin/sh -c bash ./install_conda.sh && rm install_conda.sh]: exit code: 1 ------ > [conda 2/3] RUN bash ./install_conda.sh && rm install_conda.sh: ------ executor failed running [/bin/sh -c bash ./install_conda.sh && rm install_conda.sh]: exit code: 1 ``` Locally tested with the `/builder/libtorch/build_docker.sh`
1 parent 7a44689 commit fdad948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/install_conda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
# Anaconda
66
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
77
chmod +x Miniconda3-latest-Linux-x86_64.sh
8-
./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
8+
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
99
rm Miniconda3-latest-Linux-x86_64.sh
1010
export PATH=/opt/conda/bin:$PATH
1111
conda install -y conda-build anaconda-client git ninja

0 commit comments

Comments
 (0)