Update install.py

This commit is contained in:
Jan Janßen 2019-02-02 13:05:26 +01:00 committed by GitHub
parent d6eaf73db1
commit 562bc4e584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ if pydir:
str = "cp ../src/liblammps.so %s" % pydir
print(str)
try:
shutil.copyfile("../src/liblammps.so", os.path.join(pydir,"liblammps.so") )
if sys.platform == 'darwin':
shutil.copyfile("../src/liblammps.dylib", os.path.join(pydir,"liblammps.dylib") )
else:
shutil.copyfile("../src/liblammps.so", os.path.join(pydir,"liblammps.so") )
except shutil.Error:
pass # source and destination are identical
sys.exit()