diff options
| author | Nate Coraor <nate@bx.psu.edu> | 2015-09-15 12:58:27 -0400 |
|---|---|---|
| committer | Nate Coraor <nate@bx.psu.edu> | 2015-09-15 12:58:27 -0400 |
| commit | cfde2d33b70aca5e56c742cf01dbc3cc7fe5cb5b (patch) | |
| tree | aae8fa10415199efb320f3ccc749834576086ce0 | |
| parent | 1431b328d98b94eee50f48f5d1b2b49c8980606b (diff) | |
| parent | 4e41bd6ac7c9ba629dcdb2f3028b04ebc4bf7726 (diff) | |
| download | wheel-git-cfde2d33b70aca5e56c742cf01dbc3cc7fe5cb5b.tar.gz | |
Merged in minrk/wheel/minrk/split-soabi (pull request #53)
use split instead of rsplit to create abi_tag from SOABI
| -rw-r--r-- | wheel/bdist_wheel.py | 2 | ||||
| -rw-r--r-- | wheel/pep425tags.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wheel/bdist_wheel.py b/wheel/bdist_wheel.py index ac770e9..aa7c0c7 100644 --- a/wheel/bdist_wheel.py +++ b/wheel/bdist_wheel.py @@ -149,7 +149,7 @@ class bdist_wheel(Command): # sys.pypy_version_info.minor) abi_tag = sysconfig.get_config_vars().get('SOABI', 'none') if abi_tag.startswith('cpython-'): - abi_tag = 'cp' + abi_tag.rsplit('-', 1)[-1] + abi_tag = 'cp' + abi_tag.split('-')[1] tag = (impl_name + impl_ver, abi_tag, plat_name) # XXX switch to this alternate implementation for non-pure: diff --git a/wheel/pep425tags.py b/wheel/pep425tags.py index a6220ea..2cf2230 100644 --- a/wheel/pep425tags.py +++ b/wheel/pep425tags.py @@ -60,7 +60,7 @@ def get_supported(versions=None): soabi = sysconfig.get_config_var('SOABI') if soabi and soabi.startswith('cpython-'): - abis[0:0] = ['cp' + soabi.split('-', 1)[-1]] + abis[0:0] = ['cp' + soabi.split('-')[1]] abi3s = set() import imp |
