summaryrefslogtreecommitdiff
path: root/lang/python/python3/patches-setuptools/002-sorted-requires.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/python3/patches-setuptools/002-sorted-requires.patch')
-rw-r--r--lang/python/python3/patches-setuptools/002-sorted-requires.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/python/python3/patches-setuptools/002-sorted-requires.patch b/lang/python/python3/patches-setuptools/002-sorted-requires.patch
new file mode 100644
index 000000000..2ad4795b3
--- /dev/null
+++ b/lang/python/python3/patches-setuptools/002-sorted-requires.patch
@@ -0,0 +1,16 @@
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804249
+https://sources.debian.org/patches/python-setuptools/40.8.0-1/sorted-requires.diff/
+
+Index: b/setuptools/command/egg_info.py
+===================================================================
+--- a/setuptools/command/egg_info.py
++++ b/setuptools/command/egg_info.py
+@@ -621,7 +621,7 @@ def warn_depends_obsolete(cmd, basename,
+ def _write_requirements(stream, reqs):
+ lines = yield_lines(reqs or ())
+ append_cr = lambda line: line + '\n'
+- lines = map(append_cr, lines)
++ lines = map(append_cr, sorted(lines))
+ stream.writelines(lines)
+
+