From 94723ac64e185ba3c538d444b25e3dd381d26f94 Mon Sep 17 00:00:00 2001 From: memento Date: Wed, 27 Dec 2023 10:05:36 -0600 Subject: [PATCH] (ref) silly, I don't need to commit, just patch-debug the recipe --- setup_support.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup_support.py b/setup_support.py index 92e452f4a..848a57f78 100644 --- a/setup_support.py +++ b/setup_support.py @@ -1,7 +1,9 @@ import glob +import logging import os import shutil import subprocess +from cgi import log from contextlib import contextmanager, suppress from tempfile import mkdtemp @@ -62,10 +64,8 @@ def _find_lib(): from cffi import FFI try: - print('Checking for system libsecp256k1') # raises CalledProcessError if pkg-config is not installed or the lib does not exists subprocess.check_output(['pkg-config', '--exists', 'libsecp256k1']) # noqa S603 - print('Found system libsecp256k1') includes = subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1']) # noqa S603 includes = includes.strip().decode('utf-8') @@ -82,7 +82,7 @@ def _find_lib(): return False except Exception as e: - print('Error while checking for system libsecp256k1', e) + log.DEBUG(f'Error while trying to find libsecp256k1: {e}') return False