Create lib directory
This commit is contained in:
parent
69f8d8fa7a
commit
a25e33d96e
@ -1,4 +1,5 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
class Cereal(Package):
|
class Cereal(Package):
|
||||||
@ -30,5 +31,8 @@ def install(self, spec, prefix):
|
|||||||
# Install
|
# Install
|
||||||
shutil.rmtree(join_path(prefix, 'doc'), ignore_errors=True)
|
shutil.rmtree(join_path(prefix, 'doc'), ignore_errors=True)
|
||||||
shutil.rmtree(join_path(prefix, 'include'), 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('doc', join_path(prefix, 'doc'), symlinks=True)
|
||||||
shutil.copytree('include', join_path(prefix, 'include'), 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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user