build: remove deprecated calls for argument groups

Remove calls of `add_argument_group()` where an existing argument group
is passed as an argument, this is deprecated since Python 3.11.

PR-URL: https://github.com/nodejs/node/pull/52913
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Mohammed Keyvanzadeh 2024-05-11 05:33:03 +03:30 committed by GitHub
parent a27f473c26
commit c70fa2c6dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -448,8 +448,6 @@ shared_optgroup.add_argument('--shared-cares-libpath',
dest='shared_cares_libpath', dest='shared_cares_libpath',
help='a directory to search for the shared cares DLL') help='a directory to search for the shared cares DLL')
parser.add_argument_group(shared_optgroup)
for builtin in shareable_builtins: for builtin in shareable_builtins:
builtin_id = 'shared_builtin_' + builtin + '_path' builtin_id = 'shared_builtin_' + builtin + '_path'
shared_builtin_optgroup.add_argument('--shared-builtin-' + builtin + '-path', shared_builtin_optgroup.add_argument('--shared-builtin-' + builtin + '-path',
@ -458,15 +456,11 @@ for builtin in shareable_builtins:
help='Path to shared file for ' + builtin + ' builtin. ' help='Path to shared file for ' + builtin + ' builtin. '
'Will be used instead of bundled version at runtime') 'Will be used instead of bundled version at runtime')
parser.add_argument_group(shared_builtin_optgroup)
static_optgroup.add_argument('--static-zoslib-gyp', static_optgroup.add_argument('--static-zoslib-gyp',
action='store', action='store',
dest='static_zoslib_gyp', dest='static_zoslib_gyp',
help='path to zoslib.gyp file for includes and to link to static zoslib library') help='path to zoslib.gyp file for includes and to link to static zoslib library')
parser.add_argument_group(static_optgroup)
parser.add_argument('--tag', parser.add_argument('--tag',
action='store', action='store',
dest='tag', dest='tag',
@ -646,8 +640,6 @@ intl_optgroup.add_argument('--download-path',
default='deps', default='deps',
help='Download directory [default: %(default)s]') help='Download directory [default: %(default)s]')
parser.add_argument_group(intl_optgroup)
parser.add_argument('--debug-lib', parser.add_argument('--debug-lib',
action='store_true', action='store_true',
dest='node_debug_lib', dest='node_debug_lib',
@ -660,8 +652,6 @@ http2_optgroup.add_argument('--debug-nghttp2',
default=None, default=None,
help='build nghttp2 with DEBUGBUILD (default is false)') help='build nghttp2 with DEBUGBUILD (default is false)')
parser.add_argument_group(http2_optgroup)
parser.add_argument('--without-npm', parser.add_argument('--without-npm',
action='store_true', action='store_true',
dest='without_npm', dest='without_npm',