From 43c77ac3cb819ebfc8a35aa7df6012c8fcd3ec4a Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 1 Aug 2018 20:59:07 -0700 Subject: libdwarf: remove use of hide_files() - This was a nasty workaround due to the way our compiler wrappers used to work. We don't want to have to modify our elfutils installation to install libdwarf. - Since cd9691de5, we no longer need this because the package will always come before dependencies in our include order. --- lib/spack/llnl/util/filesystem.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib') diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index f43745a551..ace6cfded6 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -60,7 +60,6 @@ __all__ = [ 'fix_darwin_install_name', 'force_remove', 'force_symlink', - 'hide_files', 'install', 'install_tree', 'is_exe', @@ -392,18 +391,6 @@ def replace_directory_transaction(directory_name, tmp_root=None): tty.debug('TEMPORARY DIRECTORY DELETED [{0}]'.format(tmp_dir)) -@contextmanager -def hide_files(*file_list): - try: - baks = ['%s.bak' % f for f in file_list] - for f, bak in zip(file_list, baks): - shutil.move(f, bak) - yield - finally: - for f, bak in zip(file_list, baks): - shutil.move(bak, f) - - def hash_directory(directory): """Hashes recursively the content of a directory. -- cgit v1.2.3-60-g2f50