We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69e630f commit 4f8b962Copy full SHA for 4f8b962
1 file changed
pylib/gyp/__init__.py
@@ -491,9 +491,9 @@ def gyp_main(args):
491
492
options, build_files_arg = parser.parse_args(args)
493
if options.version:
494
- import pkg_resources # noqa: PLC0415
+ from importlib.metadata import version
495
496
- print(f"v{pkg_resources.get_distribution('gyp-next').version}")
+ print(f"v{version('gyp-next')")
497
return 0
498
build_files = build_files_arg
499
0 commit comments