Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions easybuild/easyblocks/g/gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from easybuild.easyblocks.generic.cmakemake import CMakeMake
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import clean_dir, copy_dir
from easybuild.tools.run import run_shell_cmd
from easybuild.tools.systemtools import get_shared_lib_ext

Expand Down Expand Up @@ -138,8 +139,8 @@ def install_step(self):

# copy all the things
try:
shutil.rmtree(self.installdir)
shutil.copytree(self.cfg['start_dir'], self.installdir)
clean_dir(self.installdir)
copy_dir(self.cfg['start_dir'], self.installdir, dirs_exist_ok=True)
except OSError as err:
raise EasyBuildError("Failed to copy %s to %s: %s", self.cfg['start_dir'], self.installdir, err)

Expand Down