summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin RK <benjaminrk@gmail.com>2015-06-18 11:10:00 -0700
committerMin RK <benjaminrk@gmail.com>2015-06-18 11:10:00 -0700
commitd053ae9ef33cea809759c06973d75e4efa055f52 (patch)
treeaae8fa10415199efb320f3ccc749834576086ce0
parent0d07b85b9ff3c34699afa102a73bf2bc3c1fd391 (diff)
downloadwheel-minrk/split-soabi.tar.gz
only use first part of SOABI for abi tagminrk/split-soabi
turns 'cpython-35m-darwin' into 'cp35m'
-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 3631184..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.split('-', 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