From 45fc8ade93fa5a31e1b69e6e6ba31d2a8172501c Mon Sep 17 00:00:00 2001 From: memento Date: Wed, 20 Dec 2023 18:01:30 -0600 Subject: [PATCH] (dbg) trying to figure out the windows annoyance --- setup_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup_support.py b/setup_support.py index f1a087b66..a82090039 100644 --- a/setup_support.py +++ b/setup_support.py @@ -66,8 +66,6 @@ def _find_lib(): ffi = FFI() try: - ffi.dlopen('secp256k1') - extension = Extension( name='coincurve._libsecp256k1', sources=[os.path.join('coincurve', '_libsecp256k1.c')], @@ -77,6 +75,8 @@ def _find_lib(): package_info = pkgconfig.parse('libsecp256k1', static=False) print(package_info) + ffi.dlopen('secp256k1') + return os.path.exists(os.path.join(package_info['include_dirs'][0], 'secp256k1_ecdh.h')) except OSError: if 'LIB_DIR' in os.environ: