Quick fix for secp256k1 on Arm MacOS
This commit is contained in:
parent
b535d7ed22
commit
2f8f950679
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user