File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040from easybuild .easyblocks .generic .cmakemake import CMakeMake
4141from easybuild .framework .easyconfig import CUSTOM
4242from easybuild .tools .build_log import EasyBuildError
43+ from easybuild .tools .filetools import clean_dir , copy_dir
4344from easybuild .tools .run import run_shell_cmd
4445from easybuild .tools .systemtools import get_shared_lib_ext
4546
@@ -138,8 +139,8 @@ def install_step(self):
138139
139140 # copy all the things
140141 try :
141- shutil . rmtree (self .installdir )
142- shutil . copytree (self .cfg ['start_dir' ], self .installdir )
142+ clean_dir (self .installdir )
143+ copy_dir (self .cfg ['start_dir' ], self .installdir , dirs_exist_ok = True )
143144 except OSError as err :
144145 raise EasyBuildError ("Failed to copy %s to %s: %s" , self .cfg ['start_dir' ], self .installdir , err )
145146
You can’t perform that action at this time.
0 commit comments