Commit af4e065b authored by Paul Ganssle's avatar Paul Ganssle Committed by GitHub

Merge pull request #1332 from tkhyn/patch-1

pep425tags: turn warning into a debug log entry
parents e17cf0bd 542e5069
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
from __future__ import absolute_import from __future__ import absolute_import
import distutils.util import distutils.util
from distutils import log
import platform import platform
import re import re
import sys import sys
...@@ -69,8 +70,8 @@ def get_flag(var, fallback, expected=True, warn=True): ...@@ -69,8 +70,8 @@ def get_flag(var, fallback, expected=True, warn=True):
val = get_config_var(var) val = get_config_var(var)
if val is None: if val is None:
if warn: if warn:
warnings.warn("Config variable '{0}' is unset, Python ABI tag may " log.debug("Config variable '%s' is unset, Python ABI tag may "
"be incorrect".format(var), RuntimeWarning, 2) "be incorrect", var)
return fallback() return fallback()
return val == expected return val == expected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment