Add py-climate (#27879)

* fixing bugs in spack monitor

updates to installer.py did not account for spack monitor, so as currently implemented
there are three cases of failure that spack monitor will not account for. To fix this we add additional
hooks, including an on cancel and also do a custom action on concretization fail.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>

* New package: py-climate

* Revert "fixing bugs in spack monitor"

This reverts commit bf7f6bf0e3.

* Flake-8

* Update package.py

* Update package.py

Co-authored-by: vsoch <vsoch@users.noreply.github.com>
This commit is contained in:
iarspider 2021-12-09 23:26:18 +01:00 committed by GitHub
parent 9445b931ec
commit 74f4c73c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
# 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 PyClimate(PythonPackage):
"""Command line arguments parsing"""
homepage = "https://pypi.org/project/climate/"
url = 'https://pypi.io/packages/py3/c/climate/climate-0.1.0-py3-none-any.whl'
version('0.1.0', sha256='01026c764b34d8204b8f527a730ef667fa5827fca765993ff1ed3e9dab2c11ae', expand=False)
depends_on('python@3.7:3', type=('build', 'run'))
depends_on('py-wheel', type='build')
depends_on('py-pip', type='build')
phases = ['install']
# copied from py-azureml-core
def install(self, spec, prefix):
pip = which('pip')
pip('install', '--no-deps', self.stage.archive_file,
'--prefix={0}'.format(prefix))