Browse Source

Add COINCURVE_CHECK_SYSTEM_LIB to disable checking for system libsecp256 by default.

anonswap
tecnovert 2 years ago
parent
commit
d79f30b84e
No known key found for this signature in database GPG Key ID: 6C1A887B4701EAE3
  1. 1
      docs/install.md
  2. 2
      setup_support.py

1
docs/install.md

@ -28,6 +28,7 @@ A few environment variables influence the build:
- `COINCURVE_UPSTREAM_REF` - This is the Git reference of [libsecp256k1][] to use rather than the (frequently updated) default.
- `COINCURVE_IGNORE_SYSTEM_LIB` - The presence of this will force fetching of [libsecp256k1][] even if it's already detected at the system level.
- `COINCURVE_CHECK_SYSTEM_LIB` - Must be set to detect [libsecp256k1][] at the system level.
!!! tip
To avoid installing the binary wheels on compatible distributions, use the `--no-binary` option.

2
setup_support.py

@ -60,6 +60,8 @@ def build_flags(library, type_, path):
def _find_lib():
if 'COINCURVE_CHECK_SYSTEM_LIB' not in os.environ:
return False
if 'COINCURVE_IGNORE_SYSTEM_LIB' in os.environ:
return False

Loading…
Cancel
Save