From 561afd5ff2b2ced1ba51392574a3f0bd2f5a01f9 Mon Sep 17 00:00:00 2001 From: rdbo Date: Wed, 3 Jan 2024 15:05:27 -0300 Subject: [PATCH] updated setup.py --- bindings/python/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index d3cf7d25..44405bf6 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -31,7 +31,11 @@ def readme(): def search_installed_libmem(): libmem_libs = ["liblibmem.so", "liblibmem.a", "libmem.lib", "libmem.dll"] - lib_dirs = [sysconfig.get_config_var("LIBDIR")] + lib_dirs = [] + + var_libdir = sysconfig.get_config_var("LIBDIR") + if var_libdir != None: + lib_dirs.append(var_libdir) print(f"Library dirs: {lib_dirs}")