changed function name and removed hardcoded libs dir
This commit is contained in:
parent
af7e3cadde
commit
151b04637e
2 changed files with 4 additions and 5 deletions
|
@ -175,5 +175,5 @@
|
|||
from spack.util.executable import *
|
||||
__all__ += spack.util.executable.__all__
|
||||
|
||||
from spack.package import flat_install, flatten_dependencies, DependencyConflictError
|
||||
__all__ += ['flat_install', 'flatten_dependencies', 'DependencyConflictError']
|
||||
from spack.package import install_dependency_symlinks, flatten_dependencies, DependencyConflictError
|
||||
__all__ += ['install_dependency_symlinks', 'flatten_dependencies', 'DependencyConflictError']
|
||||
|
|
|
@ -1211,10 +1211,9 @@ def rpath_args(self):
|
|||
return " ".join("-Wl,-rpath,%s" % p for p in self.rpath)
|
||||
|
||||
|
||||
def flat_install(pkg, spec, prefix):
|
||||
def install_dependency_symlinks(pkg, spec, prefix):
|
||||
"""Execute a dummy install and flatten dependencies"""
|
||||
os.mkdir(prefix+'/libs')
|
||||
flatten_dependencies(spec, prefix+'/libs')
|
||||
flatten_dependencies(spec, prefix)
|
||||
|
||||
def flatten_dependencies(spec, flat_dir):
|
||||
"""Make each dependency of spec present in dir via symlink."""
|
||||
|
|
Loading…
Reference in a new issue