@@ -18,18 +18,6 @@ if [ "X$PYTHON" == "X" ]; then
18
18
PYTHON=" $( which python) "
19
19
fi
20
20
21
- # Resolve pip path
22
- PIP_NAME=" $( which pip-2.7) "
23
- if [ " X$PIP_NAME " == " X" ]; then
24
- PIP_NAME=" $( which pip2.7) "
25
- fi
26
- if [ " X$PIP_NAME " == " X" ]; then
27
- PIP_NAME=" $( which pip2) "
28
- fi
29
- if [ " X$PIP_NAME " == " X" ]; then
30
- PIP_NAME=" $( which pip) "
31
- fi
32
-
33
21
# Resolve virtualenv path
34
22
VIRTUALENV_NAME=" $( which virtualenv-2.7) "
35
23
if [ " X$VIRTUALENV_NAME " == " X" ]; then
@@ -66,7 +54,6 @@ CYTHON+=" -t"
66
54
export LIBLINK_PATH=" $BUILD_PATH /objects"
67
55
export LIBLINK=" $ROOT_PATH /src/tools/liblink"
68
56
export BIGLINK=" $ROOT_PATH /src/tools/biglink"
69
- export PIP=${PIP_NAME:- pip}
70
57
export VIRTUALENV=${VIRTUALENV_NAME:- virtualenv}
71
58
72
59
export COPYLIBS=0
@@ -736,16 +723,14 @@ function run_pymodules_install() {
736
723
737
724
debug " We want to install: $PYMODULES "
738
725
739
- debug " Check if $VIRTUALENV and $PIP are present"
740
- for tool in " $VIRTUALENV " " $PIP " ; do
741
- which $tool & > /dev/null
742
- if [ $? -ne 0 ]; then
743
- error " Tool $tool is missing"
744
- exit -1
745
- fi
746
- done
726
+ debug " Check if $VIRTUALENV is present"
727
+ which $VIRTUALENV & > /dev/null
728
+ if [ $? -ne 0 ]; then
729
+ error " Tool $VIRTUALENV is missing"
730
+ exit -1
731
+ fi
747
732
748
- debug " Check if virtualenv is existing "
733
+ debug " Check if a virtual environment already exists "
749
734
if [ ! -d venv ]; then
750
735
debug " Installing virtualenv"
751
736
try $VIRTUALENV --python=python2.7 venv
0 commit comments