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
10 changes: 3 additions & 7 deletions spack_repo/access/nri/packages/um/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ def install(self, spec, prefix):
When +access3, the package installs libum-atmos.a
um-recon.exe is always installed.
"""

# List of executables to install, always install recon
um_exe = ["recon"]

if self.spec.variants["access3"].value:

# Create a pkgconf file for the um library
Expand All @@ -85,13 +81,13 @@ def install(self, spec, prefix):
install_dir = join_path(prefix, dir_name)
mkdirp(install_dir)
install_tree(build_dir, install_dir)
else:
# Install atmos executable
um_exe.append("atmos")

# Install executables and accompanying files into the prefix directory,
# according to the directory structure of EXEC_DIR, as described in (e.g.)
# https://code.metoffice.gov.uk/trac/roses-u/browser/b/y/3/9/5/trunk/meta/rose-meta.conf

# List of executables to install
um_exe = ["recon", "atmos"]
for exe in um_exe:
bin_dir = join_path(f"build-{exe}", "bin")
build_bin_dir = join_path(self.build_dir(), bin_dir)
Expand Down
Loading