fix binding install on python2 (#1231)

This commit is contained in:
Pedro Tammela 2020-04-24 11:15:12 +02:00 committed by GitHub
parent d13609d49d
commit 18aa2627f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,10 @@ def build_libraries():
if SYSTEM == 'darwin':
for file in glob.glob(MAC_LIBRARY_FILE):
try:
shutil.copy(file, LIBS_DIR, follow_symlinks=False)
except:
shutil.copy(file, LIBS_DIR)
else:
shutil.copy(LIBRARY_FILE, LIBS_DIR)
try: