From 0fade44b43f89d39448700f6150acc5c60a43ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Sat, 9 Feb 2019 08:45:03 +0100 Subject: [PATCH] Update install.py --- python/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/install.py b/python/install.py index 2cd6562557..5a97b6106d 100644 --- a/python/install.py +++ b/python/install.py @@ -22,7 +22,7 @@ else: pydir = "" # copy lammps.py to pydir if it exists # if pydir not specified, install in site-packages via distutils setup() -if sys.platform == 'darwin': +if 'liblammps.dylib' in os.listdir('../src/'): lib_ext = ".dylib" else: lib_ext = ".so"