Merge pull request #4603 from FelixSchwarz/fix-cython-setup

setup.py: fix detection of missing Cython
This commit is contained in:
TW 2019-06-04 23:17:51 +02:00 committed by GitHub
commit 8f27861c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -115,9 +115,8 @@ else:
def __init__(self, *args, **kwargs):
raise Exception('Cython is required to run sdist')
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]):
cython_c_files = [fn.replace('.pyx', '.c') for fn in cython_sources]
if not on_rtd and not all(os.path.exists(path) for path in cython_c_files):
raise ImportError('The GIT version of Borg needs Cython. Install Cython or use a released version.')