1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-06 22:43:48 +00:00

setup.py: fix bug related to BORG_LZ4_PREFIX processing

This commit is contained in:
Thomas Waldmann 2015-10-11 21:20:29 +02:00
parent 1c61f87da3
commit 8eaf460da3

View file

@ -111,7 +111,7 @@ def detect_lz4(prefixes):
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'):
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)
if lz4_prefix:
include_dirs.append(os.path.join(lz4_prefix, 'include'))