setup.py: specify libsecp256k1 shared object explicitly for Linux
This commit is contained in:
parent
ff4ec64900
commit
37e439c856
2 changed files with 7 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
14.0.dev17
|
||||
14.0.dev18
|
||||
|
|
|
|||
7
setup.py
7
setup.py
|
|
@ -60,7 +60,12 @@ if platform.system() == 'Windows':
|
|||
else:
|
||||
libraries = []
|
||||
include_dirs = []
|
||||
extra_objects = []
|
||||
out = run(['/sbin/ldconfig','-p'],stdout=PIPE,text=True,check=True).stdout.splitlines()
|
||||
import sys,re
|
||||
extra_objects = [s.split()[-1] for s in out if re.search(r'libsecp256k1.*\.so$',s)]
|
||||
if not extra_objects:
|
||||
print('setup.py: unable to find shared libsecp256k1 library. Is it installed on your system?')
|
||||
sys.exit(1)
|
||||
|
||||
setup(
|
||||
cmdclass = { 'build_ext': my_build_ext },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue