Skip to content

Commit 3e00f96

Browse files
committed
Manually copy the .dylib to .so for OSX python installs
1 parent db5033b commit 3e00f96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from setuptools import setup
33
from setuptools import Distribution
44
import os
5+
import platform
56
import subprocess
67
from distutils.command.build_clib import build_clib as _build_clib
78

@@ -17,6 +18,9 @@ def run(self):
1718
'./configure --enable-swig-python',
1819
'make'):
1920
subprocess.check_call(cmd.split(' '), cwd=abs_path)
21+
if platform.system() == 'Darwin':
22+
cmd = 'cp src/.libs/libwallycore.dylib src/.libs/libwallycore.so'
23+
subprocess.check_call(cmd.split(' '), cwd=abs_path)
2024

2125
setup(
2226
name='wallycore',

0 commit comments

Comments
 (0)