Просмотр исходного кода

setup.py: build_api: sort file list for determinism

# Conflicts:
#	docs/api.rst
#	setup.py

Original-Commit: e208d115
Marian Beermann 8 лет назад
Родитель
Сommit
44798e0edd
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      docs/changes.rst
  2. 4 1
      setup.py

+ 1 - 0
docs/changes.rst

@@ -172,6 +172,7 @@ Other changes:
 
   - language clarification - "borg create --one-file-system" option does not respect
     mount points, but considers different file systems instead, #2141
+- setup.py: build_api: sort file list for determinism
 
 
 Version 1.1.0b3 (2017-01-15)

+ 4 - 1
setup.py

@@ -584,10 +584,13 @@ class build_api(Command):
         print("auto-generating API documentation")
         with open("docs/api.rst", "w") as doc:
             doc.write("""
+.. IMPORTANT: this file is auto-generated by "setup.py build_api", do not edit!
+
+
 API Documentation
 =================
 """)
-            for mod in glob('src/borg/*.py') + glob('src/borg/*.pyx'):
+            for mod in sorted(glob('src/borg/*.py') + glob('src/borg/*.pyx')):
                 print("examining module %s" % mod)
                 mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
                 if "._" not in mod: