From 5df137548ceab35e51a53f12664df130bc8f2a5f Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Thu, 18 Dec 2014 12:29:36 -0500 Subject: Silence PEP440Warning by default unless invoking easy_install --- setuptools/command/easy_install.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'setuptools/command/easy_install.py') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 2e00b996..a71a7f36 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -54,9 +54,14 @@ from pkg_resources import ( import pkg_resources +# Turn on PEP440Warnings +warnings.filterwarnings("default", category=pkg_resources.PEP440Warning) + + sys_executable = os.environ.get('__PYVENV_LAUNCHER__', os.path.normpath(sys.executable)) + __all__ = [ 'samefile', 'easy_install', 'PthDistributions', 'extract_wininst_cfg', 'main', 'get_exe_prefixes', -- cgit v1.2.3