Skip to content

Commit fa3f99d

Browse files
author
stonebig
committed
improve wheel name detection
1 parent 3abe63a commit fa3f99d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

winpython/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,7 @@ def extract_archive(fname, targetdir=None, verbose=False):
474474
# WHEELBIN_PATTERN defines what an acceptable binary wheel package is
475475
# "cp([0-9]*)" to replace per cp(34) for python3.4
476476
# "win32|win\_amd64" to replace per "win\_amd64" for 64bit
477-
WHEELBIN_PATTERN = r'([a-zA-Z0-9\-\_\.]*)-([0-9\.\_]*[a-z0-9\+]*[0-9]?)-cp([0-9]*)\-none\-(win32|win\_amd64)\.whl'
478-
477+
WHEELBIN_PATTERN = r'([a-zA-Z0-9\-\_\.]*)-([0-9\.\_]*[a-z0-9\+]*[0-9]?)-cp([0-9]*)\-[0-9|c|o|n|e|p|m]*\-(win32|win\_amd64)\.whl'
479478

480479
def get_source_package_infos(fname):
481480
"""Return a tuple (name, version) of the Python source package"""

0 commit comments

Comments
 (0)