From 8032771faa7d3bdaf47e6d496f0cfe3b2f436f5b Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Mon, 25 Feb 2019 21:42:50 +0000 Subject: [PATCH 1/2] updated python_pip_install_if_absent.sh --- python_pip_install_if_absent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_pip_install_if_absent.sh b/python_pip_install_if_absent.sh index 8d5e6799..39272682 100755 --- a/python_pip_install_if_absent.sh +++ b/python_pip_install_if_absent.sh @@ -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 From 4aaac4f7acd13b5f2d3cef79bf01c8c844a3ac36 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Tue, 26 Feb 2019 00:09:41 +0000 Subject: [PATCH 2/2] updated python_pip_normalize_module_names.sh --- python_pip_normalize_module_names.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/python_pip_normalize_module_names.sh b/python_pip_normalize_module_names.sh index b59241ce..f99b3409 100755 --- a/python_pip_normalize_module_names.sh +++ b/python_pip_normalize_module_names.sh @@ -19,6 +19,7 @@ set -euo pipefail cat $@ | sed ' s/[>=].*$//; + s/^python-//; s/-*python$//; s/-/_/g; s/beautifulsoup4/bs4/;