diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-10 20:38:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-10 20:38:05 +0200 |
| commit | 58aef46d74ff577f60eb9e0478d6de3361c8a4e9 (patch) | |
| tree | fea3e3cf33de981dd1d54d12cb7f718876d3b244 /setup.py | |
| parent | 596b43381711248093caf1c1df3b5d93d0c70bb6 (diff) | |
| download | psutil-58aef46d74ff577f60eb9e0478d6de3361c8a4e9.tar.gz | |
1058 enable fix warnings (#1059)
* #1058: have Makefile use PYTHONWARNINGS=all by default for (almost) all commands
* #1058 fix linux tests warnings
* #1058: try not to use imp module
* #1058: get rid of imp module completely
* #1058: ignore unicode warnings
* #1058: ignore stderr from procsmem.py
* #1058: fix resource warning from Popen
* #1058: get rid of contextlib.nested (deprecated)
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -16,10 +16,13 @@ import platform import sys import tempfile import warnings -try: - from setuptools import setup, Extension -except ImportError: - from distutils.core import setup, Extension + +with warnings.catch_warnings(): + warnings.simplefilter("ignore") + try: + from setuptools import setup, Extension + except ImportError: + from distutils.core import setup, Extension HERE = os.path.abspath(os.path.dirname(__file__)) |
