Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions python/vsi/tools/patch_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
import subprocess
import re
from wheel.wheelfile import WHEEL_INFO_RE
from wheel.cli.pack import DIST_INFO_RE
from wheel.cli import WheelError

# wheel.cli is deprecated as of v0.46.0
try:
from wheel.wheelfile import WheelError
except ImportError:
from wheel.cli import WheelError

# https://github.com/pypa/wheel/blob/0.46.3/src/wheel/_commands/pack.py#L11
DIST_INFO_RE = re.compile(r"^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))\.dist-info$")


def get_parser():
parser = argparse.ArgumentParser(
Expand Down