We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c18773c + e7e35d3 commit 383d33dCopy full SHA for 383d33d
python/vsi/tools/patch_wheel.py
@@ -7,8 +7,16 @@
7
import subprocess
8
import re
9
from wheel.wheelfile import WHEEL_INFO_RE
10
-from wheel.cli.pack import DIST_INFO_RE
11
-from wheel.cli import WheelError
+
+# wheel.cli is deprecated as of v0.46.0
12
+try:
13
+ from wheel.wheelfile import WheelError
14
+except ImportError:
15
+ from wheel.cli import WheelError
16
17
+# https://github.com/pypa/wheel/blob/0.46.3/src/wheel/_commands/pack.py#L11
18
+DIST_INFO_RE = re.compile(r"^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))\.dist-info$")
19
20
21
def get_parser():
22
parser = argparse.ArgumentParser(
0 commit comments