Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Make sure to consume additional flags passed to the PIP_INSTALL command
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Sep 7, 2016
1 parent 015197a commit ea52ac9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bin/sage-pip-install
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
# This also disables pip's version self-check.
pip_install_flags="--ignore-installed --verbose --no-deps --no-index"

# Consume any additional pip install arguments except the last one
while [ $# -gt 1 ]; do
pip_install_flags="$pip_install_flags $1"
shift
done

path=${1:-.} # '.' by default

pushd "$path"
Expand Down

0 comments on commit ea52ac9

Please sign in to comment.