diff options
author | minrk <benjaminrk@gmail.com> | 2015-06-18 06:10:23 +0000 |
---|---|---|
committer | minrk <benjaminrk@gmail.com> | 2015-06-18 06:10:23 +0000 |
commit | 0d07b85b9ff3c34699afa102a73bf2bc3c1fd391 (patch) | |
tree | c9eb486d87ef1e7cc5178b4e3b6347fd46f78306 | |
parent | 80731719c9f69188b5234abd7a1c9105de239f03 (diff) | |
download | wheel-0d07b85b9ff3c34699afa102a73bf2bc3c1fd391.tar.gz |
use split instead of rsplit to create abi_tag from SOABI
SOABI is cpython-35m-darwin on CPython 3.5 on OS X.
rsplit produces `cpdarwin`, whereas split produces the desired `cp35m-darwin`.
-rw-r--r-- | wheel/bdist_wheel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wheel/bdist_wheel.py b/wheel/bdist_wheel.py index ac770e9..3631184 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)[-1] tag = (impl_name + impl_ver, abi_tag, plat_name) # XXX switch to this alternate implementation for non-pure: |