diff options
| author | Paul Ganssle <pganssle@users.noreply.github.com> | 2018-04-20 10:39:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-20 10:39:58 -0400 |
| commit | af4e065b58789fd67fdbc897af981b670f01099b (patch) | |
| tree | 75742a70e340920c5b3ba021b82eceb541fc9403 | |
| parent | e17cf0bda668e2e6b91251f63c13683b15efd051 (diff) | |
| parent | 542e5069e27bad1f72e0b37211f4d4c82d38267c (diff) | |
| download | python-setuptools-git-af4e065b58789fd67fdbc897af981b670f01099b.tar.gz | |
Merge pull request #1332 from tkhyn/patch-1
pep425tags: turn warning into a debug log entry
| -rw-r--r-- | setuptools/pep425tags.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/pep425tags.py b/setuptools/pep425tags.py index dfe55d58..3bdd3285 100644 --- a/setuptools/pep425tags.py +++ b/setuptools/pep425tags.py @@ -4,6 +4,7 @@ from __future__ import absolute_import import distutils.util +from distutils import log import platform import re import sys @@ -69,8 +70,8 @@ def get_flag(var, fallback, expected=True, warn=True): val = get_config_var(var) if val is None: if warn: - warnings.warn("Config variable '{0}' is unset, Python ABI tag may " - "be incorrect".format(var), RuntimeWarning, 2) + log.debug("Config variable '%s' is unset, Python ABI tag may " + "be incorrect", var) return fallback() return val == expected |
