Create lib directory

This commit is contained in:
Erik Schnetter 2016-04-17 00:50:15 -04:00 committed by Todd Gamblin
parent 69f8d8fa7a
commit a25e33d96e

View file

@ -1,4 +1,5 @@
from spack import *
import os
import shutil
class Cereal(Package):
@ -30,5 +31,8 @@ def install(self, spec, prefix):
# Install
shutil.rmtree(join_path(prefix, 'doc'), ignore_errors=True)
shutil.rmtree(join_path(prefix, 'include'), ignore_errors=True)
shutil.rmtree(join_path(prefix, 'lib'), ignore_errors=True)
shutil.copytree('doc', join_path(prefix, 'doc'), symlinks=True)
shutil.copytree('include', join_path(prefix, 'include'), symlinks=True)
# Create empty directory to avoid linker warnings later
os.mkdir(join_path(prefix, 'lib'))