Skip to content

Commit

Permalink
(dbg) too fast to simplify, header not found!
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Dec 26, 2023
1 parent f9ccbb9 commit 9d0fb9b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ def _find_lib():
# raises CalledProcessError if pkg-config is not installed or the lib does not exists
subprocess.check_output(['pkg-config', '--exists', 'libsecp256k1']) # noqa S603

includes = [
str(subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1'])) # noqa S603
]
includes = str(subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1'])) # noqa S603

print(f'libsecp256k1 found, using system library: {os.path.exists(os.path.join(includes[0][2:], "secp256k1.h"))}', file=sys.stderr)
print(f'libsecp256k1 found, using system library: {includes}', file=sys.stderr)
return os.path.exists(os.path.join(includes[0][2:], 'secp256k1_ecdh.h'))

except (OSError, subprocess.CalledProcessError):
Expand Down

0 comments on commit 9d0fb9b

Please sign in to comment.