Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11f286a

Browse files
author
stonebig
committed
don't let the hexawheels get you down
1 parent 2aee7dd commit 11f286a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

winpython/wppm.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ def extract_infos(self):
141141
# New : Binary wheel case
142142
elif bname.endswith(('32.whl', '64.whl')):
143143
# {name}-{version}-{python tag}-{abi tag}-{platform tag}.whl
144-
# ['sounddevice','0.3.5','py2.py3.cp34.cp35','none','win32']
145-
self.name, self.version, self.pywheel, abi, arch = bname[:-4].split("-")
144+
# ['sounddevice','0.3.5','py2.py3.cp34.cp35','none','win32']
145+
bname2 = bname[:-4].split("-")
146+
try: # normal case: pep8-1.7.0-py2.py3-none-any.whl
147+
self.name, self.version, self.pywheel, abi, arch = bname2
148+
except: # PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-none-win_amd64.whl
149+
self.name, self.version, dumb, self.pywheel, abi, arch = bname2
146150
self.pyversion = None # Let's ignore this self.pywheel
147151
# wheel arch is 'win32' or 'win_amd64'
148152
self.architecture = 32 if arch == 'win32' else 64

0 commit comments

Comments
 (0)