pull/2/head
Hari Sekhon 6 years ago
commit 56c74169c5

@ -44,7 +44,7 @@ for pip_module in $pip_modules; do
# Cannot uninstall 'urllib3'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
#
#echo "checking if python module '$python_module' is installed"
if ! python -c "import $python_module"; then
if ! python -c "import $python_module" &>/dev/null; then
echo "python module '$python_module' not installed"
$SUDO ${PIP:-pip} install $opts --ignore-installed urllib3 "$pip_module"
fi

@ -19,6 +19,7 @@ set -euo pipefail
cat $@ |
sed '
s/[>=].*$//;
s/^python-//;
s/-*python$//;
s/-/_/g;
s/beautifulsoup4/bs4/;

Loading…
Cancel
Save