diff --git a/install-pip-dependencies.sh b/install-pip-dependencies.sh index baf1ec2..da43229 100755 --- a/install-pip-dependencies.sh +++ b/install-pip-dependencies.sh @@ -37,4 +37,23 @@ if [[ $(mpicc --version) == "IBM XL"* ]]; then exit 1 fi -pip install --src . -r "$requirements_file" +switch_requirements_to_ssh() { + input_file="$1" + output_file="$2" + + # Read the input file + while IFS= read -r line; do + # Check if the line starts with "git+https://github" + if [[ $line == git+https://github* ]]; then + # Replace "git+https://github" with "git+ssh://git@github" + modified_line=${line//git+https:\/\/github/git+ssh:\/\/git@github} + echo "$modified_line" + else + echo "$line" + fi + done < "$input_file" > "$output_file" +} + +switch_requirements_to_ssh $requirements_file ssh_requirements.txt +pip install --src . -r ssh_requirements.txt + diff --git a/install.sh b/install.sh index 767873e..ade2406 100755 --- a/install.sh +++ b/install.sh @@ -54,7 +54,7 @@ conda_env_file="" opt_modules=0 # Switch mirgecom to use ssh URL -opt_git_ssh=0 +opt_git_ssh=1 # Skip cloning mirgecom opt_skip_clone=0