From a703f3523ee03c52136e20a049e5910c132fc311 Mon Sep 17 00:00:00 2001 From: rimvaliulin Date: Wed, 13 Jan 2021 10:07:39 +0500 Subject: [PATCH] Add mac --- setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup.py b/setup.py index c56a1d2..2eead0c 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from distutils.core import setup, Extension +from distutils.util import get_platform from os import path @@ -33,6 +34,16 @@ ] ) +if get_platform().startswith("macos"): + libpycades.extra_link_args=[ + '-L/opt/cprocsp/lib/', + '-lcapi20', + '-lcapi10', + '-lrdrsup', + '-L/Applications/CryptoPro_ECP.app/Contents/MacOS/lib/', + '-lcades', + '-Wl,-rpath,/Applications/CryptoPro_ECP.app/Contents/MacOS/lib/', + ] setup( name='pycryptoprosdk',