diff options
author | K900 <me@0upti.me> | 2023-11-17 08:24:51 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-11-17 20:46:13 +0300 |
commit | b852b4fa5a0fd8049e946a5d185755a6b3d4b6ae (patch) | |
tree | bd77a24eecdaea9d57ce9c206475c1cce4c898aa /pkgs/build-support/setup-hooks | |
parent | 991a07725b42cba654c5192722abad53fabd9b95 (diff) |
autoPatchelfHook: fix arguments parsing
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/auto-patchelf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.py b/pkgs/build-support/setup-hooks/auto-patchelf.py index 261f55854808e..4769179167b3b 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.py +++ b/pkgs/build-support/setup-hooks/auto-patchelf.py @@ -336,9 +336,12 @@ def main() -> None: ) parser.add_argument( "--extra-args", - nargs="*", + # Undocumented Python argparse feature: consume all remaining arguments + # as values for this one. This means this argument should always be passed + # last. + nargs="...", type=str, - help="Extra arguments to pass to patchelf" + help="Extra arguments to pass to patchelf. This argument should always come last." ) print("automatically fixing dependencies for ELF files") |