1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2024-10-17
--- pywayland-0.4.18.orig/doc/conf.py
+++ pywayland-0.4.18/doc/conf.py
@@ -90,7 +90,7 @@ def protocol_doc(input_dir, output_dir):
with open(index_file, "w") as f:
f.write(generated_index)
- for module in modules:
+ for module in sorted(modules):
output = [protocol_header.format(module=module, len=len(module), empty="")]
# get all the python files that we want to document
@@ -102,7 +102,7 @@ def protocol_doc(input_dir, output_dir):
]
# build the rst for each protocol
- for doc_file in doc_files:
+ for doc_file in sorted(doc_files):
mod = importlib.import_module(f"pywayland.protocol.{module}.{doc_file}")
# Get out the name of the class in the module
class_name = "".join(x.capitalize() for x in doc_file.split("_"))
|