From 35b5283a8f365f12996af1209448ccd816276e1f Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 18 Dec 2014 17:27:22 +0000 Subject: [PATCH] Comment option to enable Setuptools warnings Change-Id: I9fc247ab343c2cea0a8a5b7a3823b5525d6c311f --- tools/install_pip.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/install_pip.sh b/tools/install_pip.sh index 55ef93e44d..f30ad2bcd0 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -68,6 +68,13 @@ function configure_pypi_alternative_url { } +# Setuptools 8 implements PEP 440, and 8.0.4 adds a warning triggered any time +# pkg_resources inspects the list of installed Python packages if there are +# non-compliant version numbers in the egg-info (for example, from distro +# system packaged Python libraries). This is off by default after 8.2 but can +# be enabled by uncommenting the lines below. +#PYTHONWARNINGS=$PYTHONWARNINGS,always::RuntimeWarning:pkg_resources +#export PYTHONWARNINGS # Show starting versions get_versions