diff options
author | Donald Stufft <donald@stufft.io> | 2014-12-18 12:29:36 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-12-18 12:29:36 -0500 |
commit | 5df137548ceab35e51a53f12664df130bc8f2a5f (patch) | |
tree | f698976bfc5a3a49db1b9956079625638841cd37 /setuptools/command/easy_install.py | |
parent | 57e7ab8ebab9981efed9936ca11c939e34d52eec (diff) | |
download | python-setuptools-git-5df137548ceab35e51a53f12664df130bc8f2a5f.tar.gz |
Silence PEP440Warning by default unless invoking easy_install
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 5 |
1 files changed, 5 insertions, 0 deletions
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', |