From 2f8f950679961ce9cd13af0527bb4ce6e7d23205 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Tue, 21 Feb 2023 10:38:31 -0500 Subject: [PATCH] Quick fix for secp256k1 on Arm MacOS --- testing/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/conftest.py b/testing/conftest.py index 85d0824a..7f54a68b 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -12,6 +12,12 @@ from constants import * # lock down randomness random.seed(42) +if sys.platform == 'darwin': + # BUGFIX: my ARM-based MacOS system uses rosetta to run Python in x86 mode + # and so I needed this? + # - this assumes "brew install secp256k1" + os.environ['PYSECP_SO'] = '/usr/local/lib/libsecp256k1.dylib' + def pytest_addoption(parser): parser.addoption("--dev", action="store_true", default=False, help="run on real dev") @@ -1631,4 +1637,5 @@ from test_multisig import (import_ms_wallet, make_multisig, offer_ms_import, fak make_ms_address, clear_ms, make_myself_wallet) from test_bip39pw import set_bip39_pw, clear_bip39_pw + # EOF