Skip to content

Commit c863497

Browse files
committed
make sure that parent directory for RPATH wrappers exists before copying rpath_args.py into it
1 parent e9e7870 commit c863497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/toolchain/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,6 @@ def prepare_rpath_wrappers(self, rpath_filter_dirs=None, rpath_include_dirs=None
10131013
wrappers_dir = os.path.join(tempfile.mkdtemp(), RPATH_WRAPPERS_SUBDIR)
10141014
else:
10151015
wrappers_dir = os.path.join(rpath_wrappers_dir, RPATH_WRAPPERS_SUBDIR)
1016-
mkdir(wrappers_dir, parents=True)
10171016
# disable logging in RPATH wrapper scripts when they may be exported for use outside of EasyBuild
10181017
enable_wrapper_log = False
10191018

@@ -1024,6 +1023,7 @@ def prepare_rpath_wrappers(self, rpath_filter_dirs=None, rpath_include_dirs=None
10241023
# to avoid that they rely on an script that's located elsewhere;
10251024
# that's mostly important when RPATH wrapper scripts are retained to be used outside of EasyBuild
10261025
rpath_args_py = find_eb_script('rpath_args.py')
1026+
mkdir(wrappers_dir, parents=True)
10271027
copy_file(rpath_args_py, wrappers_dir)
10281028
rpath_args_py = os.path.join(wrappers_dir, os.path.basename(rpath_args_py))
10291029

0 commit comments

Comments
 (0)