From 5e1c942d2de912d08658b849b95838c63bea1260 Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Tue, 1 Jan 2019 18:20:33 +0000 Subject: [PATCH] Fix LZO2 detection Gbp-Pq: Name 0006-Fix-LZO2-detection.patch --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 46974b8..e5fa420 100755 --- a/setup.py +++ b/setup.py @@ -606,8 +606,11 @@ for (package, location) in [(hdf5_package, HDF5_DIR), if not location and CONDA_PREFIX: location = CONDA_PREFIX + # looking for lzo/lzo1x.h but pkgconfig already returns '/usr/include/lzo' + use_pkgconfig = USE_PKGCONFIG if package.tag != 'LZO2' else False + (hdrdir, libdir, rundir) = package.find_directories( - location, use_pkgconfig=USE_PKGCONFIG) + location, use_pkgconfig=use_pkgconfig) # check if HDF5 library uses old DLL naming scheme if hdrdir and package.tag == 'HDF5': -- 2.30.2