File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
confluent_kafka/kafkatest Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ function setup_virtualenv {
72
72
echo " Installing and creating virtualenv"
73
73
which virtualenv || sudo apt-get install -y python-virtualenv
74
74
virtualenv $DIR /venv
75
+ # Upgrade pip
76
+ pip install -U pip
75
77
else
76
78
echo " Reusing existing virtualenv"
77
79
fi
78
80
source $DIR /venv/bin/activate
79
- # Upgrade pip
80
- pip install -U pip
81
81
82
82
}
83
83
@@ -113,9 +113,13 @@ setup_virtualenv
113
113
# librdkafka is bundled with the wheel, if not, install it here:
114
114
# install_librdkafka
115
115
116
- install_client
117
-
118
- verify_client
116
+ if ! verify_client ; then
117
+ echo " Client not installed, installing..."
118
+ install_client
119
+ verify_client
120
+ else
121
+ echo " Client already installed"
122
+ fi
119
123
120
124
121
125
You can’t perform that action at this time.
0 commit comments