summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-10 20:38:05 +0200
committerGitHub <noreply@github.com>2017-05-10 20:38:05 +0200
commit58aef46d74ff577f60eb9e0478d6de3361c8a4e9 (patch)
treefea3e3cf33de981dd1d54d12cb7f718876d3b244 /setup.py
parent596b43381711248093caf1c1df3b5d93d0c70bb6 (diff)
downloadpsutil-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-xsetup.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index c4f3bcbc..05c212ab 100755
--- a/setup.py
+++ b/setup.py
@@ -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__))