summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Coraor <nate@bx.psu.edu>2015-09-15 12:58:27 -0400
committerNate Coraor <nate@bx.psu.edu>2015-09-15 12:58:27 -0400
commitaf2dce69df64f15f217c859fbc56dea0ef8fee11 (patch)
treeaae8fa10415199efb320f3ccc749834576086ce0
parent80731719c9f69188b5234abd7a1c9105de239f03 (diff)
parentd053ae9ef33cea809759c06973d75e4efa055f52 (diff)
downloadwheel-af2dce69df64f15f217c859fbc56dea0ef8fee11.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.py2
-rw-r--r--wheel/pep425tags.py2
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