From 18aa2627f759f825c96f2b82ae99d3d9c4220055 Mon Sep 17 00:00:00 2001 From: Pedro Tammela Date: Fri, 24 Apr 2020 11:15:12 +0200 Subject: [PATCH] fix binding install on python2 (#1231) --- bindings/python/setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 78d65da6..25b42883 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -174,7 +174,10 @@ def build_libraries(): if SYSTEM == 'darwin': for file in glob.glob(MAC_LIBRARY_FILE): - shutil.copy(file, LIBS_DIR, follow_symlinks=False) + try: + shutil.copy(file, LIBS_DIR, follow_symlinks=False) + except: + shutil.copy(file, LIBS_DIR) else: shutil.copy(LIBRARY_FILE, LIBS_DIR) try: