python-setuptools/sort-for-reproducibility.patch

54 lines
1.4 KiB
Diff

---
setuptools/command/easy_install.py | 2 +-
setuptools/tests/test_wheel.py | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -436,7 +436,7 @@ class easy_install(Command):
for spec in self.args:
self.easy_install(spec, not self.no_deps)
if self.record:
- outputs = self.outputs
+ outputs = list(sorted(self.outputs))
if self.root: # strip any package prefix
root_len = len(self.root)
for counter in range(len(outputs)):
--- a/setuptools/tests/test_wheel.py
+++ b/setuptools/tests/test_wheel.py
@@ -417,30 +417,30 @@ WHEEL_INSTALL_TESTS: tuple[dict[str, Any
dict(
id='requires_ensure_order',
install_requires="""
- foo
bar
baz
+ foo
qux
""",
extras_require={
'extra': """
- foobar>3
barbaz>4
bazqux>5
+ foobar>3
quxzap>6
""",
},
requires_txt=DALS(
"""
- foo
bar
baz
+ foo
qux
[extra]
- foobar>3
barbaz>4
bazqux>5
+ foobar>3
quxzap>6
"""
),