From 4a04989bbb633b2c53deaead7a177be57aca11c5 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 13 Feb 2024 12:55:37 +0100 Subject: [PATCH] PythonExtension.add_files_to_view: link non-executable/non-shebang regular files (#42641) --- lib/spack/spack/build_systems/python.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py index 824d634b3e6..e3df3ab3747 100644 --- a/lib/spack/spack/build_systems/python.py +++ b/lib/spack/spack/build_systems/python.py @@ -169,6 +169,8 @@ def add_files_to_view(self, view, merge_map, skip_if_exists=True): fs.filter_file( python_prefix, os.path.abspath(view.get_projection_for_spec(self.spec)), dst ) + else: + view.link(src, dst) # Finally re-target the symlinks that point to copied files. for src, dst in delayed_links: