Skip to content

Commit

Permalink
Use pigz for faster compression
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Nov 17, 2023
1 parent 37ea217 commit 773ee51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ download_repo() {
if [ -f "$SCRIPT_DIR/$repo/$repo.tar.gz" ]; then
rm "$SCRIPT_DIR/$repo/$repo.tar.gz"
fi
tar -cf "$SCRIPT_DIR/$repo/$repo.tar.gz" --directory=/tmp "$repo" -I "gzip --best"
tar -cf "$SCRIPT_DIR/$repo/$repo.tar.gz" --directory=/tmp "$repo" -I "pigz --best"
rm -rf "$temp_dir"
}

Expand All @@ -95,7 +95,7 @@ download_python_packages() {
mkdir -p "$SCRIPT_DIR/pypi"
python_exe=$(which python3)
eval "$python_exe -m pip download -r requirements.txt --destination-directory $PIP_TEMP_DIR"
tar -cf "$SCRIPT_DIR/pypi/pypi.tar.gz" --directory=/tmp pip -I "gzip --best"
tar -cf "$SCRIPT_DIR/pypi/pypi.tar.gz" --directory=/tmp pip -I "pigz --best"
rm -rf $PIP_TEMP_DIR
}

Expand Down

0 comments on commit 773ee51

Please sign in to comment.