Skip to content

Commit

Permalink
Switch this from a RuntimeWarning to a logger.debug call
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Jan 20, 2016
1 parent dde9702 commit c67e3ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pip/pep425tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import sys
import warnings
import platform
import logging

try:
import sysconfig
Expand All @@ -13,6 +14,10 @@
import distutils.sysconfig as sysconfig
import distutils.util


logger = logging.getLogger(__name__)


_osx_arch_pat = re.compile(r'(.+)_(\d+)_(\d+)_(.+)')


Expand Down Expand Up @@ -69,8 +74,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)
logger.debug("Config variable '%s' is unset, Python ABI tag may "
"be incorrect", var)
return fallback()
return val == expected

Expand Down

0 comments on commit c67e3ba

Please sign in to comment.