Skip to content

Commit f859330

Browse files
committed
actually raise an error if virtualenv or pip are missing
1 parent 4e25e7f commit f859330

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

distribute.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ CYTHON+=" -t"
6666
export LIBLINK_PATH="$BUILD_PATH/objects"
6767
export LIBLINK="$ROOT_PATH/src/tools/liblink"
6868
export BIGLINK="$ROOT_PATH/src/tools/biglink"
69-
export PIP=$PIP_NAME
70-
export VIRTUALENV=$VIRTUALENV_NAME
69+
export PIP=${PIP_NAME:-pip}
70+
export VIRTUALENV=${VIRTUALENV_NAME:-virtualenv}
7171

7272
export COPYLIBS=0
7373

@@ -737,7 +737,7 @@ function run_pymodules_install() {
737737
debug "We want to install: $PYMODULES"
738738

739739
debug "Check if $VIRTUALENV and $PIP are present"
740-
for tool in $VIRTUALENV $PIP; do
740+
for tool in "$VIRTUALENV" "$PIP"; do
741741
which $tool &>/dev/null
742742
if [ $? -ne 0 ]; then
743743
error "Tool $tool is missing"

0 commit comments

Comments
 (0)