Merge "Fix pypy soabi tests"

This commit is contained in:
Jenkins 2016-11-17 20:05:35 +00:00 committed by Gerrit Code Review
commit e5d8a78507
1 changed files with 3 additions and 0 deletions

View File

@ -749,8 +749,11 @@ def get_soabi():
soabi = None
try:
soabi = sysconfig.get_config_var('SOABI')
arch = sysconfig.get_config_var('MULTIARCH')
except IOError:
pass
if soabi and arch and 'pypy' in sysconfig.get_scheme_names():
soabi = '%s-%s' % (soabi, arch)
if soabi is None and 'pypy' in sysconfig.get_scheme_names():
# NOTE(sigmavirus24): PyPy only added support for the SOABI config var
# to sysconfig in 2015. That was well after 2.2.1 was published in the