Skip to content

Commit

Permalink
use --cache-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Oct 20, 2023
1 parent bf794a0 commit 240f6d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build-dependencies-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ file="dependencies.log"
echo $file
git mv requirements.txt $file 2> /dev/null || true # don't want requirements.txt
echo "pip-compile..."
pip-compile --upgrade --output-file="$file" &
pip-compile --upgrade --output-file="$file" --cache-dir="$file"-pip-tools-cache"$file" &

# get all extras
EXTRAS=$(python3 $GITHUB_ACTION_PATH/list_extras.py setup.cfg)
Expand All @@ -30,8 +30,7 @@ for extra in $EXTRAS; do
echo $file
git mv "requirements-${extra}.txt" $file 2> /dev/null || true # don't want requirements*.txt
echo "pip-compile..."
pip-compile --upgrade --extra $extra --output-file="$file" &
sleep 5
pip-compile --upgrade --extra $extra --output-file="$file" --cache-dir="$file"-pip-tools-cache"$file" &
done
echo

Expand Down

0 comments on commit 240f6d2

Please sign in to comment.