Skip to content

Commit

Permalink
Brought py-ats recipe back to avoid having to bring in py-poetry, try…
Browse files Browse the repository at this point in the history
…ing double quotes around spec
  • Loading branch information
ldowen committed May 15, 2024
1 parent 119143e commit bdd8472
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/devtools/tpl-manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def build_deps(args):
sexe("{0} spec --fresh -IL {1}@develop%{2} 2>&1 | tee -a \"spec-info-{2}-out.txt\"".format(spack_cmd, package_name, s))

# Install only the dependencies for Spheral and create CMake configure file
sexe("{0} install --fail-fast --fresh -u initconfig '{1}@develop%{2} dev_path=./' 2>&1 | tee -a \"tpl-build-{2}-out.txt\"".format(spack_cmd, package_name, s))
sexe("{0} install --fail-fast --fresh -u initconfig \"{1}@develop%{2} dev_path=./\" 2>&1 | tee -a \"tpl-build-{2}-out.txt\"".format(spack_cmd, package_name, s))

if not args.no_clean:
sexe("rm -f spec-info-* tpl-build-* spack-build-* spack-configure-args.txt")
Expand Down
30 changes: 30 additions & 0 deletions scripts/spack/packages/py-ats/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class PyAts(PythonPackage):
"""ATS - Automated Testing System - is an open-source, Python-based tool
for automating the running of tests of an application across a broad range
of high performance computers."""

homepage = "https://github.com/LLNL/ATS"
git = "https://github.com/LLNL/ATS.git"

maintainers = ['white238']

version('main', branch='main')
version('exit', branch='bugfix/exit-code')
version('7.0.100', tag='7.0.100')
version('7.0.9', tag='7.0.9')
version('7.0.5', tag='7.0.5')

# TODO: Add flux variant when Flux functionality works in ATS

depends_on("python@3.8:", type=('build', 'run'))
depends_on("py-numpy", type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-poetry-core', type='build')
4 changes: 2 additions & 2 deletions scripts/spack/packages/spheral/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Spheral(CachedCMakePackage, CudaPackage):
# DEPENDS
# -------------------------------------------------------------------------
depends_on('mpi', when='+mpi')
depends_on('cmake@3.10.0:', type='build')
depends_on('cmake@3.18.0:', type='build')

depends_on('boost@1.74.0 +system +filesystem -atomic -container -coroutine -chrono -context -date_time -exception -fiber -graph -iostreams -locale -log -math -mpi -program_options -python -random -regex -test -thread -timer -wave +pic', type='build')

Expand Down Expand Up @@ -71,7 +71,7 @@ class Spheral(CachedCMakePackage, CudaPackage):
depends_on('py-h5py', type='build')
depends_on('py-docutils', type='build')
depends_on('py-scipy', type='build')
depends_on('py-ats', type='build')
depends_on('py-ats@exit', type='build')
depends_on('py-mpi4py', type='build', when='+mpi')

depends_on('py-sphinx', type='build')
Expand Down

0 comments on commit bdd8472

Please sign in to comment.