From 8ae142d81b93ee48ad15a7ee13a73188fe96cae0 Mon Sep 17 00:00:00 2001 From: Riccardo Murri Date: Fri, 22 Sep 2017 21:05:33 +0200 Subject: [PATCH] install.py: Make it work with Anaconda Python on MacOSX. --- install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.py b/install.py index 3388c61a..8973cddc 100755 --- a/install.py +++ b/install.py @@ -638,7 +638,8 @@ def fix_virtualenv_issue_with_anaconda(python, destdir): # list `libpython*.so*` files libs = os.listdir(anaconda_lib_dir) libpython_files = [filename for filename in libs - if fnmatch(filename, 'libpython*.so*')] + if (fnmatch(filename, 'libpython*.so*') + or fnmatch(filename, 'libpython*.dylib'))] if not libpython_files: die(os.EX_SOFTWARE, "Unexpected Anaconda directory layout", """