|
@@ -111,7 +111,7 @@ library_dirs.append(os.path.join(ssl_prefix, 'lib'))
|
|
|
|
|
|
possible_lz4_prefixes = ['/usr', '/usr/local', '/usr/local/opt/lz4', '/usr/local/lz4', '/usr/local/borg', '/opt/local']
|
|
possible_lz4_prefixes = ['/usr', '/usr/local', '/usr/local/opt/lz4', '/usr/local/lz4', '/usr/local/borg', '/opt/local']
|
|
if os.environ.get('BORG_LZ4_PREFIX'):
|
|
if os.environ.get('BORG_LZ4_PREFIX'):
|
|
- possible_openssl_prefixes.insert(0, os.environ.get('BORG_LZ4_PREFIX'))
|
|
|
|
|
|
+ possible_lz4_prefixes.insert(0, os.environ.get('BORG_LZ4_PREFIX'))
|
|
lz4_prefix = detect_lz4(possible_lz4_prefixes)
|
|
lz4_prefix = detect_lz4(possible_lz4_prefixes)
|
|
if lz4_prefix:
|
|
if lz4_prefix:
|
|
include_dirs.append(os.path.join(lz4_prefix, 'include'))
|
|
include_dirs.append(os.path.join(lz4_prefix, 'include'))
|
|
@@ -184,12 +184,13 @@ class build_api(Command):
|
|
print("auto-generating API documentation")
|
|
print("auto-generating API documentation")
|
|
with open("docs/api.rst", "w") as doc:
|
|
with open("docs/api.rst", "w") as doc:
|
|
doc.write("""
|
|
doc.write("""
|
|
-Borg Backup API documentation"
|
|
|
|
|
|
+Borg Backup API documentation
|
|
=============================
|
|
=============================
|
|
""")
|
|
""")
|
|
for mod in glob('borg/*.py') + glob('borg/*.pyx'):
|
|
for mod in glob('borg/*.py') + glob('borg/*.pyx'):
|
|
print("examining module %s" % mod)
|
|
print("examining module %s" % mod)
|
|
- if "/_" not in mod:
|
|
|
|
|
|
+ mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
|
|
|
|
+ if "._" not in mod:
|
|
doc.write("""
|
|
doc.write("""
|
|
.. automodule:: %s
|
|
.. automodule:: %s
|
|
:members:
|
|
:members:
|
|
@@ -255,7 +256,7 @@ setup(
|
|
},
|
|
},
|
|
author='The Borg Collective (see AUTHORS file)',
|
|
author='The Borg Collective (see AUTHORS file)',
|
|
author_email='borgbackup@librelist.com',
|
|
author_email='borgbackup@librelist.com',
|
|
- url='https://borgbackup.github.io/',
|
|
|
|
|
|
+ url='https://borgbackup.readthedocs.org/',
|
|
description='Deduplicated, encrypted, authenticated and compressed backups',
|
|
description='Deduplicated, encrypted, authenticated and compressed backups',
|
|
long_description=long_description,
|
|
long_description=long_description,
|
|
license='BSD',
|
|
license='BSD',
|