From 9d0fb9b820862dff7663ab072f0c7982c2e9f631 Mon Sep 17 00:00:00 2001 From: memento Date: Tue, 26 Dec 2023 17:49:41 -0600 Subject: [PATCH] (dbg) too fast to simplify, header not found! --- setup_support.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup_support.py b/setup_support.py index 00c1cddc4..41e9a8613 100644 --- a/setup_support.py +++ b/setup_support.py @@ -67,11 +67,9 @@ def _find_lib(): # raises CalledProcessError if pkg-config is not installed or the lib does not exists subprocess.check_output(['pkg-config', '--exists', 'libsecp256k1']) # noqa S603 - includes = [ - str(subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1'])) # noqa S603 - ] + includes = str(subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1'])) # noqa S603 - print(f'libsecp256k1 found, using system library: {os.path.exists(os.path.join(includes[0][2:], "secp256k1.h"))}', file=sys.stderr) + print(f'libsecp256k1 found, using system library: {includes}', file=sys.stderr) return os.path.exists(os.path.join(includes[0][2:], 'secp256k1_ecdh.h')) except (OSError, subprocess.CalledProcessError):