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 @@
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
......
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