--- pbr-6.1.0/pbr/packaging.py.orig	2024-11-04 19:49:55.754222100 +0100
+++ pbr-6.1.0/pbr/packaging.py	2024-11-04 19:55:41.715958600 +0100
@@ -506,7 +506,10 @@
         if os.name != 'nt':
             get_script_args = override_get_script_args
         else:
-            get_script_args = easy_install.get_script_args
+            def get_script_args(dist, executable=None):
+                writer = easy_install.ScriptWriter
+                header = writer.get_header("", executable)
+                return writer.get_args(dist, header)
             executable = '"%s"' % executable
 
         for args in get_script_args(dist, executable):
