From 0272fbb95e8c9af1b9221639073b859e773b0964 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Mon, 17 Sep 2018 21:30:13 +0200 Subject: Upgrade pip when installing Python virtual environments with the venv method. --- python_install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python_install.sh') diff --git a/python_install.sh b/python_install.sh index 1a82249..b80ff76 100755 --- a/python_install.sh +++ b/python_install.sh @@ -41,6 +41,16 @@ venv_install_method() local env_dir="${1}"; shift; "${python}" -m venv "${env_dir}" + + set +o nounset + source "${env_dir}/bin/activate" + set -o nounset + + pip install --upgrade pip + + set +o nounset + deactivate + set -o nounset } pip_install_method() -- cgit v1.2.3-70-g09d2