From b5e6e6e7c50ef499c9905571f705d508b7996097 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 4 Mar 2020 00:47:37 +0100 Subject: [PATCH] fix setup.py for syncfilerange --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 796c74567..dd6369504 100644 --- a/setup.py +++ b/setup.py @@ -130,6 +130,7 @@ try: 'src/borg/algorithms/xxh64/xxhash.h', 'src/borg/algorithms/xxh64/xxhash.c', 'src/borg/platform/posix.c', 'src/borg/platform/linux.c', + 'src/borg/platform/syncfilerange.c', 'src/borg/platform/freebsd.c', 'src/borg/platform/darwin.c', 'src/borg/algorithms/msgpack/_packer.cpp', @@ -150,6 +151,7 @@ except ImportError: checksums_source = checksums_source.replace('.pyx', '.c') platform_posix_source = platform_posix_source.replace('.pyx', '.c') platform_linux_source = platform_linux_source.replace('.pyx', '.c') + platform_syncfilerange_source = platform_syncfilerange_source.replace('.pyx', '.c') platform_freebsd_source = platform_freebsd_source.replace('.pyx', '.c') platform_darwin_source = platform_darwin_source.replace('.pyx', '.c') @@ -159,7 +161,7 @@ except ImportError: from distutils.command.build_ext import build_ext if not on_rtd and not all(os.path.exists(path) for path in [ compress_source, crypto_ll_source, chunker_source, hashindex_source, item_source, checksums_source, - platform_posix_source, platform_linux_source, platform_freebsd_source, platform_darwin_source, + platform_posix_source, platform_linux_source, platform_syncfilerange_source, platform_freebsd_source, platform_darwin_source, msgpack_packer_source, msgpack_unpacker_source]): raise ImportError('The GIT version of Borg needs Cython. Install Cython or use a released version.')