MINGW-packages/mingw-w64-python-pbr/0001-fix-for-new-setuptools.patch
Christoph Reiter cd6f47843c python-pbr: fix for newer setuptools
setuptools removed a long deprecated function (which was only
used on Windows there) so add a minimal variant back.

See https://github.com/pypa/setuptools/pull/3948 for the removal
2024-11-04 20:00:45 +01:00

15 lines
647 B
Diff

--- 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):