Skip to content

Commit

Permalink
(fix) Do we need env?
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Dec 28, 2023
1 parent 75f9a5c commit d315b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def _find_lib():
from cffi import FFI

try:
subprocess.check_output(['pkg-config', '--exists', 'libsecp256k1'], env=env) # noqa S603
subprocess.check_output(['pkg-config', '--exists', 'libsecp256k1']) # noqa S603

includes = subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1'], env=env) # noqa S603
includes = subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1']) # noqa S603
includes = includes.strip().decode('utf-8')

return os.path.exists(os.path.join(includes[2:], 'secp256k1_ecdh.h'))
Expand All @@ -75,7 +75,7 @@ def _find_lib():
with suppress(OSError):
FFI().dlopen(path)
return True
# We couldn't locate libsecp256k1 so we'll use the bundled one
# We couldn't locate libsecp256k1, so we'll use the bundled one
return False


Expand Down

0 comments on commit d315b13

Please sign in to comment.