Skip to content

Commit

Permalink
(dbg) trying to figure out the windows annoyance
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Dec 21, 2023
1 parent ff76128 commit 45fc8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')],
Expand All @@ -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:
Expand Down

0 comments on commit 45fc8ad

Please sign in to comment.