From 74f4c73c24da3c35a21cc6a0029e1638e356f544 Mon Sep 17 00:00:00 2001 From: iarspider Date: Thu, 9 Dec 2021 23:26:18 +0100 Subject: 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 * New package: py-climate * Revert "fixing bugs in spack monitor" This reverts commit bf7f6bf0e39109a315a0d9286150c669d055c21c. * Flake-8 * Update package.py * Update package.py Co-authored-by: vsoch --- .../repos/builtin/packages/py-climate/package.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-climate/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-climate/package.py b/var/spack/repos/builtin/packages/py-climate/package.py new file mode 100644 index 0000000000..f207537f94 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-climate/package.py @@ -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)) -- cgit v1.2.3-70-g09d2