forked from lijiext/lammps
Update install.py
This commit is contained in:
parent
d6eaf73db1
commit
562bc4e584
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue