diff --git a/setup.py b/setup.py index 8f31a927f..e3338280c 100644 --- a/setup.py +++ b/setup.py @@ -182,15 +182,15 @@ def finalize_options(self): def run(self): print("auto-generating API documentation") - with open("docs/api.rst", "w") as api: - api.write(""" + with open("docs/api.rst", "w") as doc: + doc.write(""" Borg Backup API documentation" ============================= """) for mod in glob('borg/*.py') + glob('borg/*.pyx'): print("examining module %s" % mod) if "/_" not in mod: - api.write(""" + doc.write(""" .. automodule:: %s :members: :undoc-members: