Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions pylib/gyp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import shlex
import sys
import traceback
from importlib.metadata import version

import gyp.input
from gyp.common import GypError
Expand Down Expand Up @@ -491,9 +492,7 @@ def gyp_main(args):

options, build_files_arg = parser.parse_args(args)
if options.version:
import pkg_resources # noqa: PLC0415

print(f"v{pkg_resources.get_distribution('gyp-next').version}")
print(f"v{version('gyp-next')}")
return 0
build_files = build_files_arg

Expand Down
2 changes: 1 addition & 1 deletion pylib/gyp/mac_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def _FindProvisioningProfile(self, profile, bundle_identifier):
# If the user has multiple provisioning profiles installed that can be
# used for ${bundle_identifier}, pick the most specific one (ie. the
# provisioning profile whose pattern is the longest).
selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
selected_key = max(valid_provisioning_profiles, key=len)
return valid_provisioning_profiles[selected_key]

def _LoadProvisioningProfile(self, profile_path):
Expand Down
Loading